[FIX] l10n_gcc_invoice: product name is not shown in arabic

Steps to reproduce:

-install l10n_gcc_invoice module
-switch to a company in Saudi Arabia (SA company)
-create and print an invoice with a product that has arabic translation

Bug:

in 880954ebfc

a change was introduced that causes the context on the fields
to be overridden by the env context

https://github.com/odoo/odoo/blob/16.0/odoo/addons/base/models/ir_qweb_fields.py#L120

this causes the arabic name `t-field` in this case to lose its context
along with the language information

Fix:

change it to `t-out`

OPW-3077547

closes odoo/odoo#108366

X-original-commit: 0113d8539334f76d364771deceb882714ddc36bb
Signed-off-by: Josse Colpaert <jco@odoo.com>
Signed-off-by: Mohamed Megahed Abbas Megahed SALLAM (mome) <mome@odoo.com>
This commit is contained in:
momegahed
2022-12-25 09:47:52 +01:00
parent 82c72b58f6
commit 327ebf77ee
@@ -283,7 +283,7 @@
<t t-if="arabic_name != english_name">
<br/>
<span t-field="line.with_context(lang='ar_001').product_id.name"
<span t-out="line.with_context(lang='ar_001').product_id.name"
style="text:right"
t-options="{'widget': 'text'}"/>
</t>