From 8da53f9dec425a2be6c6e51c7eaaec727714051b Mon Sep 17 00:00:00 2001 From: Denis Michiels Date: Mon, 16 Feb 2015 10:20:51 +0100 Subject: [PATCH] [FIX] account: taxes translated in partner language Regression introduced during cbe2dbb672a6c55d86f2e515f9d1cdfee426ef80 Fixes #5132 opw-627826 --- 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 e2eddf5b9b0..b3e5977d1d9 100644 --- a/addons/account/account_invoice.py +++ b/addons/account/account_invoice.py @@ -643,7 +643,7 @@ class account_invoice(models.Model): partner = invoice.partner_id if partner.lang: ctx['lang'] = partner.lang - for taxe in account_invoice_tax.compute(invoice).values(): + for taxe in account_invoice_tax.compute(invoice.with_context(ctx)).values(): account_invoice_tax.create(taxe) # dummy write on self to trigger recomputations return self.with_context(ctx).write({'invoice_line': []})