diff options
| author | Benjamin Vray <bvr@odoo.com> | 2020-03-26 11:42:12 +0000 |
|---|---|---|
| committer | qsm-odoo <qsm@odoo.com> | 2020-04-22 16:53:06 +0000 |
| commit | 3920bb6fcfb3d6245e9918dfb5cbfcb9c5748acb (patch) | |
| tree | 05185affb699616008950511122e4a82f43c7b63 /addons/web_editor/static/src/js/editor | |
| parent | c22f99dd09b0f8381a888ae065d66bb96da3b248 (diff) | |
[FIX] web_editor: restore m2o widget in edit mode
Hide the button used to display the input and show the input
directly. Add a search icon into the input. Deactivate the browser
autocomplete. Improve and fix the layout. Keep the field selected
after choosing a result from the list.
This commit was only about making it work in the 13.0 left panel. It
will be improved further in master with our new left panel.
task-2187712
closes odoo/odoo#50024
X-original-commit: 6660ee960a3c643ae92448d7bdc37f6c780605b6
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
Diffstat (limited to 'addons/web_editor/static/src/js/editor')
| -rw-r--r-- | addons/web_editor/static/src/js/editor/snippets.options.js | 4 |
1 files changed, 1 insertions, 3 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 71504e2a959..2bb4dfc429d 100644 --- a/addons/web_editor/static/src/js/editor/snippets.options.js +++ b/addons/web_editor/static/src/js/editor/snippets.options.js @@ -3093,9 +3093,7 @@ registry.many2one = SnippetOptionWidget.extend({ self.$target.html($li.data('name')); } - _.defer(function () { - self.trigger_up('deactivate_snippet'); - }); + this._clear(); } }); |
