Add missing default_kind for TaxRule

This commit is contained in:
Cédric Krier committed 2013-03-20 12:24:33 +01:00
1 parent 9f3aeef1e0
commit f2a5639da5
1 file changed
+4
+4
View File
@@ -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