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 d22a072f63
commit eb579453b3
+2 -4
View File
@@ -20,8 +20,7 @@ class Category(metaclass=PoolMeta):
'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 @@ class CategoryAccount(metaclass=PoolMeta):
('closed', '!=', True),
('type.expense', '=', True),
('company', '=', Eval('company', -1)),
],
depends=['company'])
])
@classmethod
def __register__(cls, module_name):