summaryrefslogtreecommitdiff
path: root/addons/purchase_product_matrix
diff options
context:
space:
mode:
authorYannick Tivisse <yti@odoo.com>2020-04-21 08:19:20 +0000
committerYannick Tivisse <yti@odoo.com>2020-04-21 08:19:20 +0000
commit1ba9bef148350aede43e863bea389a914c8ff931 (patch)
tree0074bdc2b9342b3ffca8e3d00bc2a45b6be1b928 /addons/purchase_product_matrix
parent1d30a4cd4479e5eca4cd90da163b267825652f5a (diff)
[FIX] purchase_product_matrix: Fix product creation from PO line
closes odoo/odoo#49829 Taskid: 2234570 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
Diffstat (limited to 'addons/purchase_product_matrix')
-rw-r--r--addons/purchase_product_matrix/static/src/js/product_matrix_configurator.js2
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);
}
},