From 63271effaad0a8c440841679d2d7f8dcbc376aaa Mon Sep 17 00:00:00 2001 From: Raimon Esteve Date: Sat, 18 Dec 2021 01:44:06 +0100 Subject: [PATCH] Add default company to invoice deferred issue11051 review370451002 --- account.py | 4 ++++ 1 file changed, 4 insertions(+) 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'