diff --git a/account.py b/account.py index 2ba05f2c0e..24189795a4 100644 --- a/account.py +++ b/account.py @@ -179,6 +179,10 @@ class InvoiceDeferred(Workflow, ModelSQL, ModelView): else: self.amount = self.invoice_line.amount + @classmethod + def default_company(cls): + return Transaction().context.get('company') + @classmethod def default_state(cls): return 'draft'