Add default value for company on tax rule

issue4753
review15391002
This commit is contained in:
Sergi Almacellas Abellana committed 2015-05-19 21:15:12 +02:00
1 parent 95b001ba72
commit abc20cea91
1 file changed
+4
+4
View File
@@ -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