changeset 21b5fde0835c in modules/account_stock_anglo_saxon:default
details:
https://hg.tryton.org/modules/account_stock_anglo_saxon?cmd=changeset&node=21b5fde0835c
description:
Send only the required fields when fetching a readonly view definition
issue11134
review380081002
diffstat:
product.py | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diffs (23 lines):
diff -r 8db754a397d0 -r 21b5fde0835c product.py
--- a/product.py Wed Apr 06 23:37:42 2022 +0200
+++ b/product.py Fri Apr 08 19:07:12 2022 +0200
@@ -20,8 +20,7 @@
'invisible': (~Eval('context', {}, ).get('company')
| Eval('account_parent')
| ~Eval('accounting', False)),
- },
- depends=['account_parent', 'accounting']))
+ }))
@classmethod
def multivalue_model(cls, field):
@@ -50,8 +49,7 @@
('closed', '!=', True),
('type.expense', '=', True),
('company', '=', Eval('company', -1)),
- ],
- depends=['company'])
+ ])
@classmethod
def __register__(cls, module_name):