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: