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

        issue9176
        review295221002
        (grafted from a0aefae9a59dc8c569f155eb1f6c8f10c95c18cd)
diffstat:

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

diffs (16 lines):

diff -r 872c98fae156 -r 15ceb9fe5eea invoice.py
--- a/invoice.py        Sun Mar 01 21:03:30 2020 +0100
+++ b/invoice.py        Mon Mar 30 09:58:20 2020 +0200
@@ -2236,6 +2236,12 @@
     def default_manual():
         return True
 
+    @classmethod
+    def default_invoice_state(cls):
+        pool = Pool()
+        Invoice = pool.get('account.invoice')
+        return Invoice.default_state()
+
     @fields.depends('invoice', '_parent_invoice.state')
     def on_change_with_invoice_state(self, name=None):
         if self.invoice:

Reply via email to