Send only the required fields when fetching a readonly view definition
issue11134 review380081002
This commit is contained in:
+1
-2
@@ -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
@@ -146,6 +146,5 @@ class DepositRecallStart(ModelView):
|
||||
domain=[
|
||||
('type.deposit', '=', True),
|
||||
('company', '=', Eval('company', -1)),
|
||||
],
|
||||
depends=['company'])
|
||||
])
|
||||
description = fields.Text('Description', required=True)
|
||||
|
||||
Reference in New Issue
Block a user