diff --git a/tax.py b/tax.py index 48bb87d36d..48bb442e40 100644 --- a/tax.py +++ b/tax.py @@ -1285,6 +1285,10 @@ class TaxRule(ModelSQL, ModelView): def default_kind(): return 'both' + @staticmethod + def default_company(): + return Transaction().context.get('company') + def apply(self, tax, pattern): ''' Apply rule on tax