diff options
| author | qsm-odoo <qsm@odoo.com> | 2019-12-09 11:32:58 +0000 |
|---|---|---|
| committer | qsm-odoo <qsm@odoo.com> | 2019-12-09 12:48:07 +0000 |
| commit | 90c672cd22d8b1d24feff1ed2647bc0b15246a8a (patch) | |
| tree | 048dbc83b6e786154fb33b449c755be57a0c40f6 /addons/web_editor/static | |
| parent | 2521578033464d50690a284cfa63519d8dd3de86 (diff) | |
[FIX] web_editor: prevent widgets with no method to auto-update $target
Diffstat (limited to 'addons/web_editor/static')
| -rw-r--r-- | addons/web_editor/static/src/js/editor/snippets.options.js | 4 |
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, }; |
