Skip to content
Snippets Groups Projects
Commit 8a3049a6 authored by Nshimiyimana Séna's avatar Nshimiyimana Séna
Browse files

[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#108752

Signed-off-by: default avatarNicolas Viseur (vin) <vin@odoo.com>
parent f56d5906
Branches
Tags
No related merge requests found
......@@ -471,19 +471,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>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment