diff options
| -rw-r--r-- | addons/sale/static/src/js/product_configurator_widget.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/sale/static/src/js/product_configurator_widget.js b/addons/sale/static/src/js/product_configurator_widget.js index 599cc4790cf..54bca05098f 100644 --- a/addons/sale/static/src/js/product_configurator_widget.js +++ b/addons/sale/static/src/js/product_configurator_widget.js @@ -120,7 +120,7 @@ var ProductConfiguratorWidget = relationalFields.FieldMany2One.extend({ if (ev.data.changes && !ev.data.preventProductIdCheck && ev.data.changes.product_template_id) { this._onTemplateChange(record.data.product_template_id.data.id, ev.data.dataPointID); } else if (ev.data.changes && ev.data.changes.product_id) { - this._onProductChange(record.data.product_id.data.id, ev.data.dataPointID).then(wizardOpened => { + this._onProductChange(record.data.product_id.data && record.data.product_id.data.id, ev.data.dataPointID).then(wizardOpened => { if (!wizardOpened) { this._onLineConfigured(); } |
