From 460c21f76578cceec364f0431d03e4f4515d6acc Mon Sep 17 00:00:00 2001 From: Aaron Bohy Date: Tue, 23 May 2017 15:31:44 +0200 Subject: [FIX] web: Kanban: various bugs in grouped mode This rev. fixes the next three bugs: - the dataPoints representing each group didn't have the parentID attribute set - when quick creating a record, the res_ids and count attributes of the group, and of the parent weren't correctly updated - when quick creating a record, the environment (view_manager) wasn't correctly updated The combination of thoses bugs produced the following crash. Open a grouped kanban view (e.g. project.task), quick create a record, open that record in form view (note that the pager was wrong, it indicated 0/x, where x number of records), delete the record -> the form is supposed to load the next record, but it crashed because it couldn't get its id (trying to read id null). --- addons/web/static/src/js/views/basic/basic_model.js | 1 + 1 file changed, 1 insertion(+) (limited to 'addons/web/static/src/js/views/basic/basic_model.js') 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 5d6a3271692..9d4d29b7635 100644 --- a/addons/web/static/src/js/views/basic/basic_model.js +++ b/addons/web/static/src/js/views/basic/basic_model.js @@ -2654,6 +2654,7 @@ var BasicModel = AbstractModel.extend({ orderedBy: list.orderedBy, limit: list.limit, openGroupByDefault: list.openGroupByDefault, + parentID: list.id, type: 'list', viewType: list.viewType, }); -- cgit v1.2.3