From 3e2369fbb6e1a0be28e3296f1faae794a95d6705 Mon Sep 17 00:00:00 2001 From: Nicolas Lempereur Date: Mon, 21 Dec 2015 09:42:05 +0100 Subject: [PATCH] [FIX] web_kanban: reference for loaded more records If the kanban view is loading grouped records, the dataset of the view itself is the concatenation of the dataset of each groups. But when using "Load more..." on a column, these records are not added in the view dataset which is thus desynchronised. This could lead to an error down the road. closes #10156 opw-659016 --- addons/web_kanban/static/src/js/kanban_view.js | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/web_kanban/static/src/js/kanban_view.js b/addons/web_kanban/static/src/js/kanban_view.js index 6600dc8a0c8..6d9c9baec06 100644 --- a/addons/web_kanban/static/src/js/kanban_view.js +++ b/addons/web_kanban/static/src/js/kanban_view.js @@ -706,6 +706,7 @@ var KanbanView = View.extend({ return this.load_records(offset, column.dataset).then(function (result) { _.each(result.records, function (r) { column.add_record(r, {no_update: true}); + self.dataset.add_ids([r.id]); }); column.offset += self.limit; column.remaining = Math.max(column.remaining - self.limit, 0);