[FIX]Refixed the issue of reload whole record from one2many.
bzr revid: msh@openerp.com-20130313051042-4nqv5abjf9odi2bh
This commit is contained in:
commit
8cb9a216f0
|
@ -3877,7 +3877,13 @@ instance.web.form.One2ManyListView = instance.web.ListView.extend({
|
|||
else
|
||||
return $.when();
|
||||
}).done(function () {
|
||||
self.handle_button(name, id, callback);
|
||||
if (!self.o2m.options.reload_on_button) {
|
||||
self.handle_button(name, id, callback);
|
||||
}else {
|
||||
self.handle_button(name, id, function(){
|
||||
self.o2m.view.reload();
|
||||
});
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in New Issue