From f2a5639da5ec30238a0ad14a48ffef807bab176a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Wed, 20 Mar 2013 12:24:33 +0100 Subject: [PATCH] Add missing default_kind for TaxRule --- tax.py | 4 ++++ 1 file changed, 4 insertions(+) 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