[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:
niv-openerp 2011-12-22 14:24:47 +01:00
parent ff513b476c
commit 13e46ecebf
1 changed files with 6 additions and 1 deletions

View File

@ -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({