changeset f028cc184ef1 in modules/account_deposit:default
details:
https://hg.tryton.org/modules/account_deposit?cmd=changeset&node=f028cc184ef1
description:
Send only the required fields when fetching a readonly view definition
issue11134
review380081002
diffstat:
account.py | 3 +--
invoice.py | 3 +--
2 files changed, 2 insertions(+), 4 deletions(-)
diffs (24 lines):
diff -r 1b8e78f1e5aa -r f028cc184ef1 account.py
--- a/account.py Wed Apr 06 23:37:41 2022 +0200
+++ b/account.py Fri Apr 08 19:07:12 2022 +0200
@@ -18,8 +18,7 @@
states={
'invisible': ~Eval('statement').in_(
['off-balance', 'balance']),
- },
- depends=['statement'])
+ })
if not template:
for fname in dir(Mixin):
field = getattr(Mixin, fname)
diff -r 1b8e78f1e5aa -r f028cc184ef1 invoice.py
--- a/invoice.py Wed Apr 06 23:37:41 2022 +0200
+++ b/invoice.py Fri Apr 08 19:07:12 2022 +0200
@@ -146,6 +146,5 @@
domain=[
('type.deposit', '=', True),
('company', '=', Eval('company', -1)),
- ],
- depends=['company'])
+ ])
description = fields.Text('Description', required=True)