diff options
| author | Aaron Bohy <aab@odoo.com> | 2018-10-11 10:22:01 +0200 |
|---|---|---|
| committer | Aaron Bohy <aab@odoo.com> | 2018-10-11 11:21:57 +0200 |
| commit | a78108318606a0709d40c4849e45b0788d2954a1 (patch) | |
| tree | 0a4ca142afd7dc4790f83b2f180db10bd0a92083 /addons/web/static/src/js/fields/basic_fields.js | |
| parent | 4aec0b7740bd57249d504616345ece90fb31c524 (diff) | |
[FIX] web: close m2o (in o2m) dialog with ESCAPE
Let's assume a one2many editable list containing a many2one field
(e.g. in a sales order, the product_id m2o in order_line o2m), and
the scenario where the user clicks on 'Create and Edit' in the o2m,
and then presses ESCAPE in the opened dialog.
Before this rev., it crashed because the 'navigation_move' (cancel)
event wasn't stop propagated by the form renderer (the one of the
dialog), and thus bubbled up to the list editable renderer, which
asked its basic model to discard a record it didn't know.
Note: same fix as in 8445baa (done in saas-11.3), but with a
simpler test.
Task 1878254
Diffstat (limited to 'addons/web/static/src/js/fields/basic_fields.js')
0 files changed, 0 insertions, 0 deletions
