From 0752bb698e029558ec0a1ebd8e290ac3eb617c61 Mon Sep 17 00:00:00 2001 From: Sergi Almacellas Abellana Date: Fri, 2 Mar 2018 12:42:52 +0100 Subject: [PATCH] Rebrowse taxes when computing tax to have proper context issue7183 review37061002 --- tax.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tax.py b/tax.py index 9ad8a02fb2..7c217b2d4f 100644 --- a/tax.py +++ b/tax.py @@ -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)