[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:
@@ -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&value=%s&width=%s&height=%s'%('QR', o.l10n_eg_qr_code, 130, 130)"/>
|
||||
</p>
|
||||
</t>
|
||||
</div>
|
||||
</xpath>
|
||||
</template>
|
||||
</data>
|
||||
|
||||
Reference in New Issue
Block a user