15 lines
800 B
XML
15 lines
800 B
XML
|
<?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&value=%s&width=%s&height=%s&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>
|