diff options
| author | Julien Mougenot <jum@odoo.com> | 2019-09-06 09:58:34 +0000 |
|---|---|---|
| committer | Aaron Bohy <aab@odoo.com> | 2019-09-18 11:28:03 +0000 |
| commit | f15c0699062ad41a325fb94a1862502f36d21a7d (patch) | |
| tree | 3f84f7bccd49ebb9fc50fa66bc809c1487256848 /addons/web/static/src/js/fields | |
| parent | 2cdd46b566d00aa6c8e6bb9452c3edde120ce2a3 (diff) | |
[FIX] web: list: clicking discard doesn't trigger an onFieldChange
Fixes the way records are discarded in list views
Before this commit, clicking the "Discard changes" button in a list view
after editing a record triggered both the "field changed" and the "discard changes"
methods (resulting in 2 modals opening).
Now, all fieldChanges are prevented when trying to click "Discard changes",
and are re-applied if the click was unsuccessful (lifted left mouse button somewhere else).
Task 2068280
Diffstat (limited to 'addons/web/static/src/js/fields')
0 files changed, 0 insertions, 0 deletions
