diff options
| author | Aaron Bohy <aab@odoo.com> | 2020-07-03 12:05:29 +0000 |
|---|---|---|
| committer | Aaron Bohy <aab@odoo.com> | 2020-07-03 16:41:56 +0000 |
| commit | 2e6ec660227ce8591a40d9a85c39303f4e9220c1 (patch) | |
| tree | c15f26953d7f16a722e58d913cdd5add7fc256f5 /addons/mail/static/src/models/thread/thread.js | |
| parent | 5aa97651318860fa5a626484328681dfb2edd634 (diff) | |
[FIX] web: editable list: correctly edit in readonly
Some widgets allow the edition in readonly (e.g. boolean_toggle,
priority...). In this case, the changed value is saved directly.
Before this commit, this didn't work in (main) list views: the
widget was updated with the new value, but it wasn't saved in db,
so the change was lost at reload.
This was due to the list controller not being correctly aware of
its mode ('edit' or 'readonly'), on which the basic controller
relies to determine whether a change must be saved directly or
not.
With this commit, a list is always in 'readonly', except when a
row is being edited, in which case it is in 'edit'.
Issue reported on task 2288963
closes odoo/odoo#54075
X-original-commit: 64e55cb42163643386740fbd23d710f64033b2ae
Signed-off-by: Julien Mougenot (jum) <jum@odoo.com>
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
Diffstat (limited to 'addons/mail/static/src/models/thread/thread.js')
0 files changed, 0 insertions, 0 deletions
