[fix] problem with list view o2m: not refreshing the view after we clicked
bzr revid: nicolas.vanhoren@openerp.com-20111222132447-rkcieookqbnanyas
This commit is contained in:
parent
ff513b476c
commit
13e46ecebf
|
@ -2409,7 +2409,12 @@ openerp.web.form.One2ManyListView = openerp.web.ListView.extend({
|
|||
self.o2m.reload_current_view();
|
||||
});
|
||||
});
|
||||
}
|
||||
},
|
||||
do_button_action: function (name, id, callback) {
|
||||
var self = this;
|
||||
var def = $.Deferred().then(callback).then(function() {self.o2m.view.reload();});
|
||||
return this._super(name, id, _.bind(def.resolve, def));
|
||||
},
|
||||
});
|
||||
|
||||
openerp.web.form.One2ManyFormView = openerp.web.FormView.extend({
|
||||
|
|
Loading…
Reference in New Issue