Send only the required fields when fetching a readonly view definition

issue11134
review380081002
This commit is contained in:
Nicolas Évrard
2022-04-08 19:07:12 +02:00
parent ecef001747
commit 77aef64046
2 changed files with 2 additions and 4 deletions
+1 -2
View File
@@ -18,8 +18,7 @@ def AccountTypeMixin(template=False):
states={
'invisible': ~Eval('statement').in_(
['off-balance', 'balance']),
},
depends=['statement'])
})
if not template:
for fname in dir(Mixin):
field = getattr(Mixin, fname)
+1 -2
View File
@@ -146,6 +146,5 @@ class DepositRecallStart(ModelView):
domain=[
('type.deposit', '=', True),
('company', '=', Eval('company', -1)),
],
depends=['company'])
])
description = fields.Text('Description', required=True)