[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) <vin@odoo.com>
This commit is contained in:
Nshimiyimana Séna
2023-01-10 15:43:16 +01:00
parent 743704c54e
commit 1d3fbcb6e2
@@ -483,19 +483,19 @@
<strong>Incoterm:
</strong>
<span
t-field="o.invoice_incoterm_id.code"/>
t-out="o.invoice_incoterm_id.code"/>
-
<span
t-field="o.invoice_incoterm_id.name"/>
t-out="o.invoice_incoterm_id.name"/>
</div>
<div class="col-6 text-end">
<strong>شرط تجاري:
</strong>
<span
t-field="o_sec.invoice_incoterm_id.code"/>
t-out="o_sec.invoice_incoterm_id.code"/>
-
<span
t-field="o_sec.invoice_incoterm_id.name"/>
t-out="o_sec.invoice_incoterm_id.name"/>
</div>
</div>
</p>