diff options
| -rw-r--r-- | addons/purchase_product_matrix/static/src/js/product_matrix_configurator.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/purchase_product_matrix/static/src/js/product_matrix_configurator.js b/addons/purchase_product_matrix/static/src/js/product_matrix_configurator.js index 9d1175d2a1d..12d467f42b7 100644 --- a/addons/purchase_product_matrix/static/src/js/product_matrix_configurator.js +++ b/addons/purchase_product_matrix/static/src/js/product_matrix_configurator.js @@ -103,7 +103,7 @@ var MatrixConfiguratorWidget = relationalFields.FieldMany2One.extend({ this._super.apply(this, arguments); - if (ev.data.changes && ev.data.changes.product_template_id) { + if (ev.data.changes && ev.data.changes.product_template_id && ev.data.changes.product_template_id.id) { self._onTemplateChange(ev.data.changes.product_template_id.id, ev.data.dataPointID); } }, |
