[FIX] web : FormView wrong records count in pager

Using breadcrumb to open and close form view, the page counter increase each time with the number of record in the list view or kanban view
This commit is contained in:
vbh-odoo
2015-09-15 16:40:46 +02:00
committed by Jérome Maes
parent cc47baf763
commit 0975c71689
@@ -250,7 +250,7 @@ var KanbanView = View.extend({
def = dataset.read_slice(self.fields_keys.concat(['__last_update']), { 'limit': self.limit });
}
return def.then(function (records) {
self.dataset.ids.push.apply(self.dataset.ids, dataset.ids);
self.dataset.ids.push.apply(self.dataset.ids, _.difference(dataset.ids, self.dataset.ids));
group.records = records;
group.dataset = dataset;
is_empty = is_empty && !records.length;