From 1d3fbcb6e259ee7bdc827bc8db5f01b22cc4f482 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nshimiyimana=20S=C3=A9na?= Date: Fri, 6 Jan 2023 09:21:46 +0000 Subject: [PATCH] [FIX] l10n_gcc_invoice: translate payment terms' notes correctly ## Steps to reproduce - install l10n_gcc_invoice module - switch to a company in Saudi Arabia (SA company) - create and print an invoice that has a payment term with a translated note We expect the payment term's note to be displayed both in English and Arabic. But instead, the note is displayed twice in the customer's preferred language. ## Cause `t-field` does not use the context defined on the field itself. It uses the rendering context. opw-3101387 closes odoo/odoo#109330 X-original-commit: 8a3049a63c7e9b13892278784781a793f8e0ab4f Signed-off-by: Nicolas Viseur (vin) --- addons/l10n_gcc_invoice/views/report_invoice.xml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/addons/l10n_gcc_invoice/views/report_invoice.xml b/addons/l10n_gcc_invoice/views/report_invoice.xml index 5f6900e22fb..046716acd9e 100644 --- a/addons/l10n_gcc_invoice/views/report_invoice.xml +++ b/addons/l10n_gcc_invoice/views/report_invoice.xml @@ -483,19 +483,19 @@ Incoterm: + t-out="o.invoice_incoterm_id.code"/> - + t-out="o.invoice_incoterm_id.name"/>
شرط تجاري: + t-out="o_sec.invoice_incoterm_id.code"/> - + t-out="o_sec.invoice_incoterm_id.name"/>