From 7aeaabaa8955ac3ff21e791be818c102aca41b8d Mon Sep 17 00:00:00 2001 From: Christophe Matthieu Date: Tue, 27 Nov 2012 09:39:35 +0100 Subject: [PATCH] [FIX] web kanban: Remember all Ids dataset. For bug : click on Show More...(At Bottom of Kanban view). After, when you click on a record, it give : could not find id#x error. bzr revid: chm@openerp.com-20121127083935-6tmbvee0ghuta00f --- addons/web_kanban/static/src/js/kanban.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/addons/web_kanban/static/src/js/kanban.js b/addons/web_kanban/static/src/js/kanban.js index 398d65d17ce..357fa049d5f 100644 --- a/addons/web_kanban/static/src/js/kanban.js +++ b/addons/web_kanban/static/src/js/kanban.js @@ -642,13 +642,12 @@ instance.web_kanban.KanbanGroup = instance.web.Widget.extend({ }, do_show_more: function(evt) { var self = this; + var ids = self.view.dataset.ids.splice(0); return this.dataset.read_slice(this.view.fields_keys.concat(['__last_update']), { 'limit': self.view.limit, 'offset': self.dataset_offset += self.view.limit }).then(function(records) { - records.forEach(function(r) { - self.view.dataset.ids.push(r.id); - }); + self.view.dataset.ids = self.view.dataset.ids.concat(ids); self.do_add_records(records); return records; });