diff options
| author | Khoi Nguyen <bng@odoo.com> | 2017-09-29 14:54:48 +0200 |
|---|---|---|
| committer | Khoi Nguyen <khoi@nguyen.me.uk> | 2017-10-16 12:20:11 +0200 |
| commit | b6c3ee4e24ffefe6de326bb94861226c176a5bd9 (patch) | |
| tree | 09e4c8d2eb1c3f80318d9fe67046d4831f966979 /addons/web/static/src/js/core/ajax.js | |
| parent | 8ee9024a4c888647df9e18861fe5e58b68947469 (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.
Diffstat (limited to 'addons/web/static/src/js/core/ajax.js')
0 files changed, 0 insertions, 0 deletions
