From 1f3fb9b3ad18be73bd91f18e8fa725bb016adf4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sat, 21 Aug 2010 12:33:52 +0200 Subject: [PATCH] Fix wrong context for call of tax compute for issue1645 (transplanted from 0b436b131d56f08ea97b03eb716532f02643c83e) --- sale.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sale.py b/sale.py index 776cb5fdeb..5a2a0aa039 100644 --- a/sale.py +++ b/sale.py @@ -355,7 +355,7 @@ class Sale(ModelWorkflow, ModelSQL, ModelView): for tax in tax_obj.compute(cursor, user, line.get('taxes', []), line.get('unit_price', Decimal('0.0')), - line.get('quantity', 0.0), context=context): + line.get('quantity', 0.0), context=ctx): key, val = invoice_obj._compute_tax(cursor, user, tax, 'out_invoice', context=context) if not key in taxes: