[FIX] account: lang used for invoice taxes
The lang used for invoice taxes must be the lang of the partner. opw:631461
This commit is contained in:
parent
cb86fefc3a
commit
eb0a309522
|
@ -810,7 +810,7 @@ class account_invoice(models.Model):
|
|||
# create the analytical lines, one move line per invoice line
|
||||
iml = inv._get_analytic_lines()
|
||||
# check if taxes are all computed
|
||||
compute_taxes = account_invoice_tax.compute(inv)
|
||||
compute_taxes = account_invoice_tax.compute(inv.with_context(lang=inv.partner_id.lang))
|
||||
inv.check_tax_lines(compute_taxes)
|
||||
|
||||
# I disabled the check_total feature
|
||||
|
|
Loading…
Reference in New Issue