diff options
| author | Aaron Bohy <aab@odoo.com> | 2017-08-14 15:58:48 +0200 |
|---|---|---|
| committer | Aaron Bohy <aab@odoo.com> | 2017-08-16 13:03:33 +0200 |
| commit | ab2e71d9fc2486f248fd6518237ac4b54cf45bd5 (patch) | |
| tree | 051dfe1bc9a6c0c27c2572bc13367a59083b1156 /addons/web/static/src/js/views/basic/basic_model.js | |
| parent | b5b8e66b900e78dc3228946e15d517f91a214703 (diff) | |
[FIX] web: Kanban: notify environment of ids changes
In grouped Kanban views, the list of res_ids of the displayed
records may change for several reasons:
1) 'Load more' is clicked for a column
2) a record is moved from a column to another
3) a record is moved inside a column (resequence)
4) a column is moved
5) a column is (un)archived
6) a column is (un)folded
7) a record is created/destroyed directly from the Kanban.
When this happens, the environment must be notified of the new
list of res_ids (the order matters). Before this rev., this wasn't
the case. As a consequence, when a record was opened in a Form view
after one of the 5 operations above, the pager could display
unexpected values.
Note that before the new views, cases 2, 3 and 4 weren't handled,
and case 7 already worked before this commit.
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_model.js')
| -rw-r--r-- | addons/web/static/src/js/views/basic/basic_model.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/web/static/src/js/views/basic/basic_model.js b/addons/web/static/src/js/views/basic/basic_model.js index e8409487abc..d55109bde01 100644 --- a/addons/web/static/src/js/views/basic/basic_model.js +++ b/addons/web/static/src/js/views/basic/basic_model.js @@ -3360,6 +3360,7 @@ var BasicModel = AbstractModel.extend({ list.data = data; list.res_ids = ids; } + self._updateParentResIDs(list); return list; }); }, |
