changeset a0aefae9a59d in modules/account_invoice:default
details: 
https://hg.tryton.org/modules/account_invoice?cmd=changeset;node=a0aefae9a59d
description:
        Add default invoice state on tax lines

        issue9176
        review295221002
diffstat:

 invoice.py |  6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diffs (16 lines):

diff -r ad190260f23f -r a0aefae9a59d invoice.py
--- a/invoice.py        Thu Mar 19 18:59:17 2020 +0100
+++ b/invoice.py        Mon Mar 30 09:58:20 2020 +0200
@@ -2313,6 +2313,12 @@
         return True
 
     @classmethod
+    def default_invoice_state(cls):
+        pool = Pool()
+        Invoice = pool.get('account.invoice')
+        return Invoice.default_state()
+
+    @classmethod
     def get_invoice_states(cls):
         pool = Pool()
         Invoice = pool.get('account.invoice')

Reply via email to