diff options
| author | Yannick Tivisse <yti@odoo.com> | 2019-07-02 10:41:19 +0200 |
|---|---|---|
| committer | Yannick Tivisse <yti@odoo.com> | 2019-07-12 13:01:36 +0200 |
| commit | f896afcc8a54eae3efcdf034e3fd256942f7fa78 (patch) | |
| tree | f971a366144eacbdcdb77e74650ddaea75dce4d7 /addons/web/static/src/js/fields/field_registry.js | |
| parent | ba0308923030c2dcafa1a1577742fa5233d71a04 (diff) | |
[FIX] web: Call 'toggle_active' instead of 'write'
Purpose
=======
Currently when clicking on 'Archive' or 'Unarchive' on the list view,
we write directly on the record {'active': False}, instead of calling
toggle_active. Missing that way implementation of numerous business cases.
Example
- Archive a record --> archive its next activities
- (Un)Archive a user --> (Un)Archive its partner
- (Un)Archive a product variant --> (Un)Archive its template if
there is only one variant
- Archive an employee --> Open a wizard to choose an exit plan + describe
the departure reason
- Archive a route --> Archive its procurement rules
- ...
Specification
=============
- Call toggle_active instead of write when calling toggleActive in the web
client.
- On the other hand, use actionArchive and actionUnarchive to apply the
toggle action on the related records only.
Diffstat (limited to 'addons/web/static/src/js/fields/field_registry.js')
0 files changed, 0 insertions, 0 deletions
