From 67a53dd997301f80f0ca8e3f935beb79c1bc3598 Mon Sep 17 00:00:00 2001 From: "Jay (OpenERP)" Date: Fri, 5 Nov 2010 00:13:48 +0530 Subject: [PATCH] [FIX] Account : If partner language is set, warnings gets translated into it but they should appear in user language [ Maintenance Case 397 ] bzr revid: jvo@tinyerp.com-20101104184348-j2glts8lqhxf0qlk --- addons/account/invoice.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/addons/account/invoice.py b/addons/account/invoice.py index 44ebafb9bbd..3da77df9194 100644 --- a/addons/account/invoice.py +++ b/addons/account/invoice.py @@ -823,9 +823,9 @@ class account_invoice(osv.osv): # one move line per invoice line iml = self._get_analytic_lines(cr, uid, inv.id) # check if taxes are all computed - - context.update({'lang': inv.partner_id.lang}) - compute_taxes = ait_obj.compute(cr, uid, inv.id, context=context) + ctx = context.copy() + ctx.update({'lang': inv.partner_id.lang}) + compute_taxes = ait_obj.compute(cr, uid, inv.id, context=ctx) self.check_tax_lines(cr, uid, inv, compute_taxes, ait_obj) if inv.type in ('in_invoice', 'in_refund') and abs(inv.check_total - inv.amount_total) >= (inv.currency_id.rounding/2.0):