changeset ea68b9da304c in modules/account_invoice:5.0
details:
https://hg.tryton.org/modules/account_invoice?cmd=changeset;node=ea68b9da304c
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 9eedd1b26e2f -r ea68b9da304c invoice.py
--- a/invoice.py Sun Mar 01 21:03:48 2020 +0100
+++ b/invoice.py Mon Mar 30 09:58:20 2020 +0200
@@ -2226,6 +2226,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: