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 6d0b2d1d8c
commit 49edb5a04f
+3 -6
View File
@@ -30,8 +30,7 @@ class Tax(metaclass=PoolMeta):
states={
'readonly': (Bool(Eval('template', -1))
& ~Eval('template_override', False)),
},
depends=['template', 'template_override'])
})
class ECSalesList(ModelSQL, ModelView):
@@ -117,14 +116,12 @@ class ECSalesListContext(ModelView):
'account.fiscalyear', "Fiscal Year", required=True,
domain=[
('company', '=', Eval('company')),
],
depends=['company'])
])
period = fields.Many2One(
'account.period', "Period",
domain=[
('fiscalyear', '=', Eval('fiscalyear')),
],
depends=['fiscalyear'])
])
@classmethod
def default_company(cls):