diff --git a/period.py b/period.py index 6557c5a863..1961e54a3d 100644 --- a/period.py +++ b/period.py @@ -52,6 +52,10 @@ class Period(Workflow, ModelSQL, ModelView): }, }) + @staticmethod + def default_company(): + return Transaction().context.get('company') + @staticmethod def default_state(): return 'draft'