Skip to content
This repository was archived by the owner on Apr 28, 2022. It is now read-only.

Commit ae8d373

Browse files
author
Paul Catinean
committed
Merge branch '12.0-T-00631-Default-value-autoselect-bizz-shs' into '12.0'
[FIX][T-00631]call onchange for custom values too See merge request pledra/odoo-product-configurator!69
2 parents 1d4d70a + 7a84ef0 commit ae8d373

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

product_configurator/wizard/product_configurator.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,8 +262,11 @@ def apply_onchange_values(self, values, field_name, field_onchange):
262262
field_type = type(field_name)
263263

264264
field_prefix = self._prefixes.get('field_prefix')
265-
266-
if field_type == list or not field_name.startswith(field_prefix):
265+
custom_field_prefix = self._prefixes.get('custom_field_prefix')
266+
if field_type == list or (
267+
not field_name.startswith(field_prefix)
268+
and not field_name.startswith(custom_field_prefix)
269+
):
267270
res = super(ProductConfigurator, self).onchange(
268271
values, field_name, field_onchange)
269272
return res

0 commit comments

Comments
 (0)