Debian Codegraph @

addons/l10n_latam_check/views/report_payment_receipt_templates.xml

raw
1 <odoo>
2 <template inherit_id="account.report_payment_receipt_document" id="report_payment_receipt_document">
3 <xpath expr="//table[@name='invoices']" position="before">
4 <t t-set="checks" t-value="o._get_latam_checks()"/>
5 <t t-if="checks">
6 <table id="l10n_latam_check" class="table table-sm">
7 <thead>
8 <tr>
9 <th><span>Check Number</span></th>
10 <th t-if="o.payment_method_code != 'own_checks'"><span>Bank</span></th>
11 <th t-if="o.payment_method_code != 'own_checks'"><span>Issuer VAT</span></th>
12 <th><span>Payment date</span></th>
13 <th class="text-end"><span>Amount</span></th>
14 </tr>
15 </thead>
16 <tbody>
17 <t t-foreach="checks" t-as="check">
18 <tr>
19 <td>
20 <span t-field='check.name'/>
21 </td>
22 <td t-if="o.payment_method_code != 'own_checks'">
23 <span t-field='check.bank_id.display_name'/>
24 </td>
25 <td t-if="o.payment_method_code != 'own_checks'">
26 <span t-field='check.issuer_vat'/>
27 </td>
28 <td>
29 <span t-field='check.payment_date'/>
30 </td>
31 <td class="text-end">
32 <span t-out="check.amount" t-options="{'widget': 'monetary', 'display_currency': o.currency_id}"/>
33 </td>
34 </tr>
35 </t>
36 </tbody>
37 </table>
38 </t>
39 </xpath>
40 </template>
41 </odoo>