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
1 changed files with 2 additions and 2 deletions

View File

@ -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')