diff --git a/tax.py b/tax.py index 15472e0281..332cdd8f86 100644 --- a/tax.py +++ b/tax.py @@ -952,6 +952,10 @@ class TaxRule(ModelSQL, ModelView): lines = fields.One2Many('account.tax.rule.line', 'rule', 'Lines') template = fields.Many2One('account.tax.rule.template', 'Template') + @staticmethod + def default_kind(): + return 'both' + def apply(self, tax, pattern): ''' Apply rule on tax