summaryrefslogtreecommitdiff
path: root/addons/product_matrix/static/src
diff options
context:
space:
mode:
authorVictor Feyens <vfe@odoo.com>2019-11-13 14:36:14 +0000
committerVictor Feyens <vfe@odoo.com>2019-11-21 15:31:30 +0000
commitd0d52743b7c59abde4600887e058faa20f2c1440 (patch)
tree77f1586d8988739f5662c29d3f84022bc582fc6c /addons/product_matrix/static/src
parent21bcafc053be7f80eed7a684fee2dc1e3caaafa5 (diff)
[FIX] web,product_matrix: Do not trigger event on parents.
X-original-commit: 127a75ed5c746291f9b0b7466d8935c83abc32a0
Diffstat (limited to 'addons/product_matrix/static/src')
-rw-r--r--addons/product_matrix/static/src/js/section_and_note_widget.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/product_matrix/static/src/js/section_and_note_widget.js b/addons/product_matrix/static/src/js/section_and_note_widget.js
index a6edba25148..5cbc318ed76 100644
--- a/addons/product_matrix/static/src/js/section_and_note_widget.js
+++ b/addons/product_matrix/static/src/js/section_and_note_widget.js
@@ -30,7 +30,7 @@ SectionAndNoteFieldOne2Many.include({
// even if there isn't any.
// the only solution would be to use a custom event catched on a new controller
// on the so/po form (as a js_class).
- this.getParent().trigger_up('field_changed', {
+ this.trigger_up('field_changed', {
dataPointID: this.dataPointID,
changes: {
grid: JSON.stringify({changes: changes, product_template_id: productTemplateId}),
@@ -65,7 +65,7 @@ SectionAndNoteFieldOne2Many.include({
// even if there isn't any.
// the only solution would be to use a custom event catched on a new controller
// on the so/po form (as a js_class).
- this.getParent().trigger_up('field_changed', {
+ this.trigger_up('field_changed', {
dataPointID: this.dataPointID,
changes: {
grid_product_tmpl_id: {id: productTemplateId}