changeset 93dcce2f9d6a in modules/account_invoice_history:5.4
details:
https://hg.tryton.org/modules/account_invoice_history?cmd=changeset;node=93dcce2f9d6a
description:
Allow to write numbered_at after posting
It may happen that the numbered_at was not filled on posting because
the module
was not activated.
issue8907
review288671002
(grafted from 0f55e80105571861a25f554d0c83c152a70ff01c)
diffstat:
account.py | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diffs (11 lines):
diff -r 97c45f9cc700 -r 93dcce2f9d6a account.py
--- a/account.py Mon Nov 04 12:52:17 2019 +0100
+++ b/account.py Wed Dec 18 21:35:22 2019 +0100
@@ -31,6 +31,7 @@
@classmethod
def __setup__(cls):
super(Invoice, cls).__setup__()
+ cls._check_modify_exclude.append('numbered_at')
cls.party.datetime_field = 'numbered_at'
if 'numbered_at' not in cls.party.depends:
cls.party.depends.append('numbered_at')