changeset 7300f7d67560 in modules/account_invoice_history:default
details:
https://hg.tryton.org/modules/account_invoice_history?cmd=changeset&node=7300f7d67560
description:
Send only the required fields when fetching a readonly view definition
issue11134
review380081002
diffstat:
account.py | 6 ------
1 files changed, 0 insertions(+), 6 deletions(-)
diffs (18 lines):
diff -r 6c3712becfa3 -r 7300f7d67560 account.py
--- a/account.py Wed Apr 06 23:37:41 2022 +0200
+++ b/account.py Fri Apr 08 19:07:12 2022 +0200
@@ -37,14 +37,8 @@
super(Invoice, cls).__setup__()
cls._check_modify_exclude.add('numbered_at')
cls.party.datetime_field = 'history_datetime'
- if 'history_datetime' not in cls.party.depends:
- cls.party.depends.append('history_datetime')
cls.invoice_address.datetime_field = 'history_datetime'
- if 'history_datetime' not in cls.invoice_address.depends:
- cls.invoice_address.depends.append('history_datetime')
cls.payment_term.datetime_field = 'history_datetime'
- if 'history_datetime' not in cls.payment_term.depends:
- cls.payment_term.depends.append('history_datetime')
@classmethod
def get_history_datetime(cls, invoices, name):