changeset 33b77d7d8950 in modules/product_attribute:default details: https://hg.tryton.org/modules/product_attribute?cmd=changeset&node=33b77d7d8950 description: Send only the required fields when fetching a readonly view definition
issue11134 review380081002 diffstat: product.py | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diffs (20 lines): diff -r eb616b953a46 -r 33b77d7d8950 product.py --- a/product.py Wed Apr 06 23:37:43 2022 +0200 +++ b/product.py Fri Apr 08 19:07:13 2022 +0200 @@ -50,14 +50,13 @@ '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')