Debian Codegraph @

addons/l10n_jo_edi/views/report_invoice.xml

raw
1 <?xml version="1.0" encoding="UTF-8"?>
2 <odoo>
3 <template id="report_invoice_document" inherit_id="account.report_invoice_document" primary="True">
4 <xpath expr="//div[@id='qrcode']" position="after">
5 <div t-if="o.l10n_jo_edi_qr" name="qr_code">
6 <p>
7 <strong class="text-center">JoFotara QR Code</strong>
8 <img style="display:block;"
9 t-att-src="o._l10n_jo_qr_code_src()"/>
10 </p>
11 </div>
12 </xpath>
13 </template>
14
15 <!-- Workaround for Studio reports, see odoo/odoo#60660 -->
16 <template id="report_invoice" inherit_id="account.report_invoice">
17 <xpath expr='//t[@t-call="account.report_invoice_document"]' position="after">
18 <t t-elif="o._get_name_invoice_report() == 'l10n_jo_edi.report_invoice_document'"
19 t-call="l10n_jo_edi.report_invoice_document"
20 t-lang="lang"/>
21 </xpath>
22 </template>
23 </odoo>