From aa71cd4359a945f7839394433524bcd13b107edd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20=C3=89vrard?= Date: Fri, 8 Apr 2022 19:07:13 +0200 Subject: [PATCH] Send only the required fields when fetching a readonly view definition issue11134 review380081002 --- product.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/product.py b/product.py index 647b722d4b..18bfd7931e 100644 --- a/product.py +++ b/product.py @@ -50,14 +50,13 @@ class Product(metaclass=PoolMeta): 'readonly': (~Eval('attribute_set') & ~Eval('_parent_template', {}).get('attribute_set')), }, - depends=['attribute_set', 'template'], + depends={'template'}, help="Add attributes to the variant.") attributes_name = fields.Function(fields.Char( "Attributes Name", states={ 'invisible': ~Eval('attribute_set'), - }, - depends=['attribute_set']), + }), 'on_change_with_attributes_name') @fields.depends('attribute_set', 'attributes')