From c33f8279575a816acc7d67e8b54afb615a6b20fa Mon Sep 17 00:00:00 2001 From: Adrien Widart Date: Fri, 24 Dec 2021 09:02:42 +0000 Subject: [PATCH] [FIX] l10n_gcc_pos: separate RTL and LTR words When printing a ticket, if some lines mix RTL and LTR words, the rendering won't be correct To reproduce the issue: (Need l10n_sa. Use demo data) 1. Switch the company: SA Company 2. Create a point of sale POS - Setup a direct device to print the tickets 3. Start POS 4. Process an order and print the ticket Error: On the printed ticket (not the displayed one, which is correct), some Arabic words overlap (see for instance the "Served by"). When printed the ticket, the latter is converted into an image thanks to `html2canvas`. However, we need to add a space to separate LTR and RTL words, otherwise the rendering won't be done properly. A similar issue can be observed if the user language is AR: some other rendering issues can be noticed on the ticket. OPW-2704550 closes odoo/odoo#81899 X-original-commit: 86a20f7ef1b93eb099110feec5bca05b3a8d9a39 Signed-off-by: Trinh Jacky (trj) --- .../static/src/xml/OrderReceipt.xml | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/addons/l10n_gcc_pos/static/src/xml/OrderReceipt.xml b/addons/l10n_gcc_pos/static/src/xml/OrderReceipt.xml index 376a05a95a9..741a41298c5 100644 --- a/addons/l10n_gcc_pos/static/src/xml/OrderReceipt.xml +++ b/addons/l10n_gcc_pos/static/src/xml/OrderReceipt.xml @@ -20,7 +20,7 @@
-
Served by/خدم بواسطة
+
Served by / خدم بواسطة
@@ -29,7 +29,7 @@
- Subtotal/الإجمالي الفرعي + Subtotal / الإجمالي الفرعي
@@ -39,7 +39,7 @@
- TOTAL/الإجمالي + TOTAL / الإجمالي
@@ -49,7 +49,7 @@
- Rounding/التقريب + Rounding / التقريب
@@ -59,7 +59,7 @@
- To Pay/للسداد + To Pay / للسداد
@@ -69,7 +69,7 @@
- CHANGE/الباقي + CHANGE / الباقي
@@ -79,7 +79,7 @@
- Discounts/الخصومات + Discounts / الخصومات
@@ -89,7 +89,7 @@
- Total Taxes/إجمالي الضرائب + Total Taxes / إجمالي الضرائب
@@ -102,7 +102,7 @@
-
Taxes/الضرائب
: +
Taxes / الضرائب
:
@@ -121,7 +121,7 @@
-
Taxes/الضرائب
: +
Taxes / الضرائب
:
@@ -133,7 +133,7 @@
-
Discount/الخصم
: % +
Discount / الخصم
: %