[FIX]Fixed the issue of reload whole record when new record is created for one2many from wizard, so by default only that record is reloaded but as wizard creates new record in one2many so we have reload whole record so that one2many reloaded with new record, we already did this with setting options=reload_on_button to true

bzr revid: msh@openerp.com-20130312134748-kpmf0dxz9iyji1v3
This commit is contained in:
Mohammed Shekha 2013-03-12 19:17:48 +05:30
parent 18eb55643e
commit 1289a23782
1 changed files with 7 additions and 1 deletions

View File

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