Use depends on TaxableMixin

issue8986
review282751002
This commit is contained in:
Cédric Krier committed 2020-02-12 00:19:27 +01:00
1 parent 96a6fb6bce
commit b901b18c85
1 file changed
+1
+1
View File
@@ -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')