[FIX]Refixed the issue of reload whole record from one2many.

bzr revid: msh@openerp.com-20130313051042-4nqv5abjf9odi2bh
This commit is contained in:
Mohammed Shekha 2013-03-13 10:40:42 +05:30
commit 8cb9a216f0
1 changed files with 7 additions and 1 deletions

View File

@ -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();
});
}
});
},