diff options
| author | Adrien Dieudonne <adr@odoo.com> | 2017-06-27 11:13:41 +0200 |
|---|---|---|
| committer | Adrien Dieudonne <adr@odoo.com> | 2017-06-28 10:40:35 +0200 |
| commit | ceff4d4608c1a07bf9935e5682824ef506a3e695 (patch) | |
| tree | e5338fa192469755170ab5e99605a687547cc613 /addons/web_editor/static/src | |
| parent | df45cf65a872699f97f9ed4baac4baa40b62cef2 (diff) | |
[FIX] web: basic_controller: wait for the mutex before discard changes
Before this commit, the discard confirm dialog was directly shown
without waiting for the write RPC. For instance, it the user clicked on 'Save'
after editing a record, and then directly clicked on another menu or on the
breadcrumb before the write RPC returned, the record was still considered
as dirty and thus the confirm dialog was displayed. We now wait for the RPC
to return before checking if the record is dirty, so that the confirm dialog
is only displayed when the record is actually dirty.
Diffstat (limited to 'addons/web_editor/static/src')
0 files changed, 0 insertions, 0 deletions
