[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:
parent
18eb55643e
commit
1289a23782
|
@ -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();
|
||||
});
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in New Issue