Commit Graph
3 Commits
Author SHA1 Message Date
roen-odoo 6be5e139d2 [FIX] l10n_gcc_pos: Saudi Arabia taxes on receipt
Current behavior:
When product name is too long and need to be splitted on PoS receipt, the tax is inserted between the two lines of the product name

Steps to reproduce:
- Install SA modules
- Change company in SA
- Create a product with a very long name
- Try to buy it on the PoS
- The receipt is not correctly former

opw-2731585

closes odoo/odoo#82543

X-original-commit: 40923391333ec3338cecd06af781d591767d9b7c
Signed-off-by: Masereel Pierre <pim@odoo.com>
2022-01-11 13:34:56 +00:00
Adrien Widart c33f827957 [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) <trj@odoo.com>
2021-12-24 14:06:27 +00:00
baa ea91b778c9 [ADD] pos_l10n_gcc: arabic/english pos receipt for GCC members
Most GCC member countries have laws that mandate all receipts to include arabic

X-original-commit: a76274fbd18e2f9edb0a653e75b5e81f3411af20
Part-of: odoo/odoo#80299
2021-11-24 09:32:07 +00:00