1
0
forked from Mapan/odoo17e
odoo17e-kedaikipas58/addons/l10n_ec_edi_pos/views/report_invoice.xml
2024-12-10 09:04:09 +07:00

23 lines
1.2 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="report_invoice_document" inherit_id="l10n_ec_edi.report_invoice_document">
<!-- Replaces the payment methods table so that it shows multiple payment methods and their amount. -->
<xpath expr="//t[@t-if=&quot;o.l10n_latam_document_type_id and o.l10n_latam_internal_type != 'credit_note'&quot;]//tbody" position="attributes">
<attribute name="t-if">not o.sudo().pos_order_ids</attribute>
</xpath>
<xpath expr="//t[@t-if=&quot;o.l10n_latam_document_type_id and o.l10n_latam_internal_type != 'credit_note'&quot;]//tbody" position="after">
<tbody t-else="">
<t t-foreach="o._l10n_ec_get_payment_data()" t-as="payment">
<tr>
<td t-esc="payment['payment_name']"/>
<td class="text-end">
<span t-esc="payment['payment_total']"
t-options='{"widget": "monetary", "display_currency": o.currency_id}'/>
</td>
</tr>
</t>
</tbody>
</xpath>
</template>
</odoo>