From eb0a3095223371a4fb32aee44279c18870f24f4d Mon Sep 17 00:00:00 2001 From: Goffin Simon Date: Sat, 11 Apr 2015 09:38:28 +0200 Subject: [PATCH] [FIX] account: lang used for invoice taxes The lang used for invoice taxes must be the lang of the partner. opw:631461 --- addons/account/account_invoice.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account/account_invoice.py b/addons/account/account_invoice.py index cb7fb9a8cfe..48e6844e67c 100644 --- a/addons/account/account_invoice.py +++ b/addons/account/account_invoice.py @@ -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