summaryrefslogtreecommitdiff
path: root/addons/web_editor/static/src/js
diff options
context:
space:
mode:
authorqsm-odoo <qsm@odoo.com>2019-12-09 11:32:58 +0000
committerqsm-odoo <qsm@odoo.com>2019-12-09 12:48:07 +0000
commit90c672cd22d8b1d24feff1ed2647bc0b15246a8a (patch)
tree048dbc83b6e786154fb33b449c755be57a0c40f6 /addons/web_editor/static/src/js
parent2521578033464d50690a284cfa63519d8dd3de86 (diff)
[FIX] web_editor: prevent widgets with no method to auto-update $target
Diffstat (limited to 'addons/web_editor/static/src/js')
-rw-r--r--addons/web_editor/static/src/js/editor/snippets.options.js4
1 files changed, 4 insertions, 0 deletions
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,
};