[FIX] l10n_eg_edi_eta: moved the ETA QR code in a place where it will always show

Starting v16, the invoice template changed and the ETA QR code would stop showing in some cases. This commit moves it next to the payment QR Code so that it displays in all cases

closes odoo/odoo#131938

X-original-commit: 28661fa7a14713c9d06b7faa505a54f53baf66d3
Signed-off-by: Josse Colpaert <jco@odoo.com>
This commit is contained in:
baa
2023-08-18 23:05:55 +02:00
parent 01fa22e0c9
commit d2ed1d7277
@@ -1,14 +1,14 @@
<odoo>
<data>
<template id="egyptian_invoice" inherit_id="account.report_invoice_document">
<xpath expr="//t[@t-set='address']" position="after">
<t t-set="information_block">
<xpath expr="//div[@id='qrcode']" position="after">
<div id="qrcode_eg" t-if="o.l10n_eg_qr_code">
<p>
<img t-if="o.l10n_eg_qr_code"
style="display:block;"
<strong class="text-center">ETA QR Code</strong>
<img style="display:block;"
t-att-src="'/report/barcode/?barcode_type=%s&amp;value=%s&amp;width=%s&amp;height=%s'%('QR', o.l10n_eg_qr_code, 130, 130)"/>
</p>
</t>
</div>
</xpath>
</template>
</data>