[FIX] pos_sale: remove redundant payment information in invoice
Since the merge of https://github.com/odoo/odoo/pull/74870, pos is now using the invoice template that contains payment information. We can now remove this customization in pos_sale since it's already native in point_of_sale that payments are listed in the invoice. Part-of: odoo/odoo#77903
This commit is contained in:
committed by
Pierre Masereel
parent
c9fa9803b9
commit
62afea87b4
@@ -32,24 +32,5 @@
|
||||
</p>
|
||||
</t>
|
||||
</xpath>
|
||||
<xpath expr="//div[@id='total']/div/table" position="inside">
|
||||
<t t-if="o.pos_order_ids">
|
||||
<tr>
|
||||
<td>
|
||||
<i class="oe_form_field text-right oe_payment_label">Paid on <t t-esc="o.invoice_date" t-options='{"widget": "date"}'/></i>
|
||||
</td>
|
||||
</tr>
|
||||
<t t-foreach="o.pos_order_ids.mapped('payment_ids')" t-as="payment">
|
||||
<tr>
|
||||
<td>
|
||||
Paid with <t t-esc="payment.payment_method_id.name"/>
|
||||
</td>
|
||||
<td class="text-right">
|
||||
<t t-esc="payment.amount" t-options='{"widget": "monetary", "display_currency": o.currency_id}'/>
|
||||
</td>
|
||||
</tr>
|
||||
</t>
|
||||
</t>
|
||||
</xpath>
|
||||
</template>
|
||||
</odoo>
|
||||
|
||||
Reference in New Issue
Block a user