From 96753cc37187d893acbfdf592aff3e7fd8d795a4 Mon Sep 17 00:00:00 2001 From: "Walid HANNICHE (waha)" Date: Mon, 12 Dec 2022 17:44:39 +0000 Subject: [PATCH] [FIX] l10n_gcc_invoice: arabic invoice product name is displayed twice Steps to reproduce: -install l10n_sa_invoice module -switch to a company in Saudi Arabia (SA company) -create and print an invoice with a product that has arabic translation Bug: When adding a product and the Arabic translation. If we add an internal reference it is added to the template, Odoo directly concatenates this with the product name. The result is the product name being duplicated. Fix: display line name and add the translation if it's different opw-2829934 closes odoo/odoo#107798 X-original-commit: ad585bc41f49d047c150ceb9dc88bd9859fa046b Signed-off-by: Josse Colpaert Signed-off-by: Walid Hanniche (waha) --- .../l10n_gcc_invoice/views/report_invoice.xml | 21 +++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/addons/l10n_gcc_invoice/views/report_invoice.xml b/addons/l10n_gcc_invoice/views/report_invoice.xml index eb958b59398..af5f803f8f7 100644 --- a/addons/l10n_gcc_invoice/views/report_invoice.xml +++ b/addons/l10n_gcc_invoice/views/report_invoice.xml @@ -274,17 +274,26 @@ - - - + + + + + +
+ style="text:right" + t-options="{'widget': 'text'}"/> +
+ + +
+
- -
+