changeset 04573aa647ee in modules/web_shop_vue_storefront:default details: https://hg.tryton.org/modules/web_shop_vue_storefront?cmd=changeset&node=04573aa647ee description: Send only the required fields when fetching a readonly view definition
issue11134 review380081002 diffstat: party.py | 3 +-- web.py | 6 ++---- 2 files changed, 3 insertions(+), 6 deletions(-) diffs (34 lines): diff -r 36f7c33e8c9a -r 04573aa647ee party.py --- a/party.py Wed Apr 06 23:37:45 2022 +0200 +++ b/party.py Fri Apr 08 19:07:14 2022 +0200 @@ -36,8 +36,7 @@ domain=[ ('party', '=', Eval('party', -1)), ('type', 'in', ['phone', 'mobile']), - ], - depends=['party']) + ]) def get_vsf(self, for_party=None): if for_party and for_party != self.party: diff -r 36f7c33e8c9a -r 04573aa647ee web.py --- a/web.py Wed Apr 06 23:37:45 2022 +0200 +++ b/web.py Fri Apr 08 19:07:14 2022 +0200 @@ -82,15 +82,13 @@ states={ 'required': Eval('type') == 'vsf', 'invisible': Eval('type') != 'vsf', - }, - depends=['type']) + }) vsf_elasticsearch_index = fields.Char( "Elasticsearch Index", states={ 'required': Eval('type') == 'vsf', 'invisible': Eval('type') != 'vsf', - }, - depends=['type']) + }) @classmethod def __setup__(cls):