[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:
Goffin Simon
2015-04-13 17:12:45 +02:00
parent cb86fefc3a
commit eb0a309522
+1 -1
View File
@@ -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