[fix] problem with remove in kanban view
bzr revid: nicolas.vanhoren@openerp.com-20120604091431-41ohfxb57yl2n3c8
This commit is contained in:
parent
37e59e65b3
commit
5ad8a9c041
|
@ -474,9 +474,10 @@ instance.web_kanban.KanbanGroup = instance.web.OldWidget.extend({
|
|||
.find('.oe_kanban_remaining').text(this.dataset.size() - this.records.length);
|
||||
},
|
||||
remove_record: function(id, remove_from_dataset) {
|
||||
for (var i = 0, ii = this.records.length; i < ii; i++) {
|
||||
for (var i = 0; i < this.records.length; i++) {
|
||||
if (this.records[i]['id'] === id) {
|
||||
this.records.splice(i, 1);
|
||||
i--;
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue