Fix wrong context for call of tax compute for issue1645
(transplanted from 0b436b131d56f08ea97b03eb716532f02643c83e)
This commit is contained in:
1 parent
00a362e324
commit
1f3fb9b3ad
1 file changed
+1
-1
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user