Steps to reproduce: - Install l10n_sa module - Switch to SA company - Accounting app > Config > Settings > Enable QR codes - Create Invoice, add customer, add a line > Save > Confirm > Preview Issue: The QR code in the invoice is missing and instead there is an image with a broken link. This happens because the route called by the view is incorrect. The `report_barcode` function has changed its parameter name from `type` to `barcode_type`. Fix: Use the correct route. opw-3034366 closes odoo/odoo#103831 X-original-commit: c4302bea7cfab35a95373c4232c3d1f87f01d163 Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com> Signed-off-by: Stefan-Calin Crainiciuc (stcc) <stcc@odoo.com>
33 lines
1.2 KiB
XML
33 lines
1.2 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
|
|
<template id="arabic_english_invoice" inherit_id="l10n_gcc_invoice.arabic_english_invoice">
|
|
<xpath expr="//div[@name='due_date']" position="after">
|
|
<div class="row" t-if="o.l10n_sa_delivery_date" name="delivery_date">
|
|
<div class="col-2">
|
|
<strong style="white-space:nowrap">Delivery Date:
|
|
</strong>
|
|
</div>
|
|
<div class="col-2">
|
|
<span t-field="o.l10n_sa_delivery_date"/>
|
|
</div>
|
|
<div class="col-2 text-end">
|
|
<strong style="white-space:nowrap">:
|
|
تاريخ التوصيل
|
|
</strong>
|
|
</div>
|
|
</div>
|
|
</xpath>
|
|
<xpath expr="//t[@t-set='address']" position="after">
|
|
<t t-set="information_block">
|
|
<p>
|
|
<img t-if="o.l10n_sa_qr_code_str"
|
|
style="display:block;"
|
|
t-att-src="'/report/barcode/?barcode_type=%s&value=%s&width=%s&height=%s'%('QR', o.l10n_sa_qr_code_str, 130, 130)"/>
|
|
</p>
|
|
</t>
|
|
</xpath>
|
|
</template>
|
|
|
|
</odoo>
|