changeset fb105d945cec in modules/account_invoice_defer:default
details: 
https://hg.tryton.org/modules/account_invoice_defer?cmd=changeset&node=fb105d945cec
description:
        Add default company to invoice deferred

        issue11051
        review370451002
diffstat:

 account.py |  4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diffs (14 lines):

diff -r d9ef833ed5e3 -r fb105d945cec account.py
--- a/account.py        Mon Dec 13 23:10:08 2021 +0100
+++ b/account.py        Sat Dec 18 01:44:06 2021 +0100
@@ -180,6 +180,10 @@
                 self.amount = self.invoice_line.amount
 
     @classmethod
+    def default_company(cls):
+        return Transaction().context.get('company')
+
+    @classmethod
     def default_state(cls):
         return 'draft'
 

Reply via email to