[IMP] kanban view:- fix problem of multiple time reload view on button click.

bzr revid: ysa@tinyerp.com-20110810115856-6il0cx3pg2tvxvqp
This commit is contained in:
Yogesh (OpenERP) 2011-08-10 17:28:56 +05:30
parent fcacc05042
commit c66861676b
1 changed files with 5 additions and 1 deletions

View File

@ -127,10 +127,14 @@ openerp.base_kanban.KanbanView = openerp.base.View.extend({
this.execute_action(
button_attrs, this.dataset, this.session.action_manager,
record_id, function () {
var count = 1;
_.each(self.all_display_data, function(data, index) {
self.dataset.read_ids( data.ids, [], function(records){
self.all_display_data[index].records = records;
self.on_reload_kanban();
if(self.all_display_data.length == count) {
self.on_reload_kanban();
}
count++;
});
});
}