[FIX] web: FormOpenPopup data not correctly reloaded after clicking on a button

bzr revid: xal@openerp.com-20120417145330-ln0mpp06s886z1us
This commit is contained in:
Xavier ALT
2012-04-17 16:53:30 +02:00
parent 601be9166f
commit 12cb02a349
+5
View File
@@ -2593,6 +2593,11 @@ openerp.web.form.One2ManyListView = openerp.web.ListView.extend({
form_view_options: {'not_interactible_on_create':true},
readonly: self.o2m.is_readonly()
});
pop.dataset.call_button = function() {
var button_result = self.o2m.dataset.call_button.apply(self.o2m.dataset, arguments);
self.o2m.reload_current_view();
return button_result;
}
pop.on_write.add(function(id, data) {
self.o2m.dataset.write(id, data, {}, function(r) {
self.o2m.reload_current_view();