From 90c672cd22d8b1d24feff1ed2647bc0b15246a8a Mon Sep 17 00:00:00 2001 From: qsm-odoo Date: Mon, 9 Dec 2019 11:32:58 +0000 Subject: [PATCH] [FIX] web_editor: prevent widgets with no method to auto-update $target --- addons/web_editor/static/src/js/editor/snippets.options.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/addons/web_editor/static/src/js/editor/snippets.options.js b/addons/web_editor/static/src/js/editor/snippets.options.js index 96dab471e98..36ae9e04137 100644 --- a/addons/web_editor/static/src/js/editor/snippets.options.js +++ b/addons/web_editor/static/src/js/editor/snippets.options.js @@ -349,6 +349,10 @@ const UserValueWidget = Widget.extend({ * @param {boolean} [previewMode=false] */ _notifyValueChange: function (previewMode) { + if (!this._methodsNames.length) { + return; + } + const data = { widget: this, };