diff options
| author | Denis Ledoux <dle@odoo.com> | 2016-06-22 17:58:45 +0200 |
|---|---|---|
| committer | Denis Ledoux <dle@odoo.com> | 2016-06-22 18:11:20 +0200 |
| commit | b630c199a5d82f00769df30ac75d748d78a76533 (patch) | |
| tree | 37a64f2b910ea951ed40d5ae87a1a05e1da6b6bc /addons/web_editor/static/lib/summernote/src/js/EventHandler.js | |
| parent | f38f8930f0436a40f675fa1d054a9d46f550d440 (diff) | |
[FIX] web: 2many race condition on fast click on Save / Edit
For `this.viewmanager.active_view` to be set, the view manager
switch mode must be completed, meaning the deferred returned by
the function `switch_mode` must be resolved
(see `this.active_view = view;` in `view_manager.js`, line 146)
In a 2many field, the view manager `switch_mode` deferred is resolved
when `is_loaded` of this field is as well resolved.
Before this revision, clicking fast on Save then Edit
of a vendor bills resulted to a JS error due to a race condition,
because `this.viewmanager.active_view` was undefined when
the field was not loaded / the view manager switch mode not completed.
opw-678097
Diffstat (limited to 'addons/web_editor/static/lib/summernote/src/js/EventHandler.js')
0 files changed, 0 insertions, 0 deletions
