diff options
| author | Nicolas Lempereur <nle@odoo.com> | 2017-12-21 16:33:32 +0100 |
|---|---|---|
| committer | Nicolas Lempereur <nle@odoo.com> | 2017-12-22 16:34:06 +0100 |
| commit | 1ce4f15c39b7b242af61705850112cd85bc9febf (patch) | |
| tree | 78d8a4ce7b9a9d637695a1ee364178855a3131bf /addons/web/static/lib/jquery.mjs.nestedSortable/jquery.mjs.nestedSortable.js | |
| parent | 262bec6af53fe2cf7108faa8ec7d6bbfb67d89d6 (diff) | |
[FIX] web: discarding a new record in a modal closes the modal
Discarding a new record triggers the 'history_back' action. This makes
sense if the record was discarded from a normal form view, but not so
much when in a modal, where the expected behaviour is to close the
dialog.
This commit overrides the function in the action manager which handles
the switch to the previous view. It checks whether a dialog window is
open, in which case it simply closes it.
note: 10.0 backport from 11.0 33aa89ed
closes #20405
opw-786866
closes #21792
Diffstat (limited to 'addons/web/static/lib/jquery.mjs.nestedSortable/jquery.mjs.nestedSortable.js')
0 files changed, 0 insertions, 0 deletions
