From b901b18c858761b3f2439719d3dca2799abe7d28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Wed, 12 Feb 2020 00:19:27 +0100 Subject: [PATCH] Use depends on TaxableMixin issue8986 review282751002 --- tax.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tax.py b/tax.py index 9c10ebc956..89c301f170 100644 --- a/tax.py +++ b/tax.py @@ -1124,6 +1124,7 @@ class TaxableMixin(object): for taxline in taxes.values(): taxline['amount'] = self.currency.round(taxline['amount']) + @fields.depends(methods=['_get_tax_context', '_round_taxes']) def _get_taxes(self): pool = Pool() Tax = pool.get('account.tax')