In option_price_property field, remove 'childrens' field from depends to improve loadingi speed in tree view.

This commit is contained in:
Albert Cervera i Areny 2023-12-13 20:34:33 +01:00
parent eb12190e3b
commit a516be23e5

View file

@ -193,8 +193,8 @@ class Property(DeactivableMixin, tree(separator=' / '), sequence_ordered(),
states={ states={
'invisible': Eval('type') != 'purchase_product' 'invisible': Eval('type') != 'purchase_product'
}, },
domain = [('id', 'in', Eval('childrens'))], domain = [('id', 'in', Eval('childrens', []))],
depends=['type', 'childrens'], depends=['type'],
help='Price for option when purchase_product is selected') help='Price for option when purchase_product is selected')