summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--addons/account/views/report_invoice.xml6
-rw-r--r--addons/l10n_ar/views/report_invoice.xml15
-rw-r--r--addons/l10n_cl/views/report_invoice.xml16
3 files changed, 35 insertions, 2 deletions
diff --git a/addons/account/views/report_invoice.xml b/addons/account/views/report_invoice.xml
index 45f07cef452..f43de9c3dc4 100644
--- a/addons/account/views/report_invoice.xml
+++ b/addons/account/views/report_invoice.xml
@@ -213,7 +213,8 @@
<t t-call="web.html_container">
<t t-foreach="docs" t-as="o">
<t t-set="lang" t-value="o.invoice_user_id.sudo().lang if o.move_type in ('in_invoice', 'in_refund') else o.partner_id.lang"/>
- <t t-call="#{ o._get_name_invoice_report() }" t-lang="lang"/>
+ <t t-if="o._get_name_invoice_report() == 'account.report_invoice_document'"
+ t-call="account.report_invoice_document" t-lang="lang"/>
</t>
</t>
</template>
@@ -223,7 +224,8 @@
<t t-foreach="docs" t-as="o">
<t t-set="lang" t-value="o.invoice_user_id.sudo().lang if o.move_type in ('in_invoice', 'in_refund') else o.partner_id.lang"/>
<t t-set="print_with_payments" t-value="True"/>
- <t t-call="#{ o._get_name_invoice_report() }" t-lang="lang"/>
+ <t t-if="o._get_name_invoice_report() == 'account.report_invoice_document'"
+ t-call="account.report_invoice_document" t-lang="lang"/>
</t>
</t>
</template>
diff --git a/addons/l10n_ar/views/report_invoice.xml b/addons/l10n_ar/views/report_invoice.xml
index e8f3897868c..661c7d4c5ce 100644
--- a/addons/l10n_ar/views/report_invoice.xml
+++ b/addons/l10n_ar/views/report_invoice.xml
@@ -244,4 +244,19 @@
</xpath>
</template>
+ <!-- FIXME: Temp fix to allow fetching invoice_documemt in Studio Reports with localisation -->
+ <template id="report_invoice" inherit_id="account.report_invoice">
+ <xpath expr='//t[@t-call="account.report_invoice_document"]' position="after">
+ <t t-if="o._get_name_invoice_report() == 'l10n_ar.report_invoice_document'"
+ t-call="l10n_ar.report_invoice_document" t-lang="lang"/>
+ </xpath>
+ </template>
+
+ <template id="report_invoice_with_payments" inherit_id="account.report_invoice_with_payments">
+ <xpath expr='//t[@t-call="account.report_invoice_document"]' position="after">
+ <t t-if="o._get_name_invoice_report() == 'l10n_ar.report_invoice_document'"
+ t-call="l10n_ar.report_invoice_document" t-lang="lang"/>
+ </xpath>
+ </template>
+
</odoo>
diff --git a/addons/l10n_cl/views/report_invoice.xml b/addons/l10n_cl/views/report_invoice.xml
index e0dfade0a02..13df416d002 100644
--- a/addons/l10n_cl/views/report_invoice.xml
+++ b/addons/l10n_cl/views/report_invoice.xml
@@ -201,4 +201,20 @@
</template>
+
+ <!-- FIXME: Temp fix to allow fetching invoice_documemt in Studio Reports with localisation -->
+ <template id="report_invoice" inherit_id="account.report_invoice">
+ <xpath expr='//t[@t-call="account.report_invoice_document"]' position="after">
+ <t t-if="o._get_name_invoice_report() == 'l10n_cl.report_invoice_document'"
+ t-call="l10n_cl.report_invoice_document" t-lang="lang"/>
+ </xpath>
+ </template>
+
+ <template id="report_invoice_with_payments" inherit_id="account.report_invoice_with_payments">
+ <xpath expr='//t[@t-call="account.report_invoice_document"]' position="after">
+ <t t-if="o._get_name_invoice_report() == 'l10n_cl.report_invoice_document'"
+ t-call="l10n_cl.report_invoice_document" t-lang="lang"/>
+ </xpath>
+ </template>
+
</odoo>