[FIX] l10n_eg_edi_eta, l10n_sa: Adapting barcode API to the new one

This commit change `/report/barcode/?type=` to  `/report/barcode/?barcode_type`

See https://github.com/odoo/odoo/commit/ee324e8374536cebca4d7302210b07e8f33d3852#diff-8f0bbb50491623995fba965c3d64585c6cbfdbbe519ec95473e472826d253826R1977-R1979

sentry-3965574308

closes odoo/odoo#127290

X-original-commit: 638b61114d8148557cdbcc30a1272e1b3da79880
Signed-off-by: William Henrotin (whe) <whe@odoo.com>
This commit is contained in:
Achraf
2023-07-10 11:48:57 +02:00
parent abbfd74436
commit 80246ab857
2 changed files with 2 additions and 2 deletions
@@ -6,7 +6,7 @@
<p>
<img t-if="o.l10n_eg_qr_code"
style="display:block;"
t-att-src="'/report/barcode/?type=%s&amp;value=%s&amp;width=%s&amp;height=%s'%('QR', o.l10n_eg_qr_code, 130, 130)"/>
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>
</xpath>
+1 -1
View File
@@ -24,7 +24,7 @@
<p>
<img t-if="o.l10n_sa_qr_code_str"
style="display:block;"
t-att-src="'/report/barcode/?type=%s&amp;value=%s&amp;width=%s&amp;height=%s'%('QR', o.l10n_sa_qr_code_str, 200, 200)"/>
t-att-src="'/report/barcode/?barcode_type=%s&amp;value=%s&amp;width=%s&amp;height=%s'%('QR', o.l10n_sa_qr_code_str, 200, 200)"/>
</p>
</t>
</xpath>