Rebrowse taxes when computing tax to have proper context

issue7183
review37061002
This commit is contained in:
Sergi Almacellas Abellana committed 2018-03-02 12:42:52 +01:00
1 parent 5a971e7422
commit 0752bb698e
1 file changed
+1 -1
+1 -1
View File
@@ -1082,7 +1082,7 @@ class TaxableMixin(object):
taxable_lines = [_TaxableLine(*params)
for params in self.taxable_lines]
for line in taxable_lines:
l_taxes = Tax.compute(line.taxes, line.unit_price,
l_taxes = Tax.compute(Tax.browse(line.taxes), line.unit_price,
line.quantity, self.tax_date)
for tax in l_taxes:
taxline = self._compute_tax_line(**tax)