Odoo18-Base/addons/l10n_es_edi_tbai/views/report_invoice.xml

15 lines
800 B
XML
Raw Permalink Normal View History

2025-01-06 10:57:38 +07:00
<?xml version="1.0" encoding="UTF-8"?>
<odoo>
<template id="l10n_es_tbai_external_layout_standard" inherit_id="account.report_invoice_document">
<xpath expr="//div[@id='qrcode']" position="after">
<div name="l10n_es_tbai_qrcode" t-if="o.l10n_es_tbai_state == 'sent'" style="page-break-inside: avoid">
<div t-out="o.l10n_es_tbai_post_document_id._get_tbai_id()"/>
<img
t-att-src="'/report/barcode/?barcode_type=%s&amp;value=%s&amp;width=%s&amp;height=%s&amp;barLevel=%s'%('QR', quote_plus(o.l10n_es_tbai_post_document_id._get_tbai_qr()), 125, 125, 'M')"/>
<!-- NOTE: Sizes assume a 90 dpi resolution to meet requirements (between 30 and 40 mm) -->
</div>
</xpath>
</template>
</odoo>