From a516be23e5c65c41151caa98e3e71d9a05debba7 Mon Sep 17 00:00:00 2001 From: Albert Cervera i Areny Date: Wed, 13 Dec 2023 20:34:33 +0100 Subject: [PATCH] In option_price_property field, remove 'childrens' field from depends to improve loadingi speed in tree view. --- configurator.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configurator.py b/configurator.py index 4c24f88..25ba207 100644 --- a/configurator.py +++ b/configurator.py @@ -193,8 +193,8 @@ class Property(DeactivableMixin, tree(separator=' / '), sequence_ordered(), states={ 'invisible': Eval('type') != 'purchase_product' }, - domain = [('id', 'in', Eval('childrens'))], - depends=['type', 'childrens'], + domain = [('id', 'in', Eval('childrens', []))], + depends=['type'], help='Price for option when purchase_product is selected')