From abc20cea91f626366bd3cabbf186bcef7c22495f Mon Sep 17 00:00:00 2001 From: Sergi Almacellas Abellana Date: Tue, 19 May 2015 21:15:12 +0200 Subject: [PATCH] Add default value for company on tax rule issue4753 review15391002 --- tax.py | 4 ++++ 1 file changed, 4 insertions(+) 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