[FIX] Forgot two occurencies during do_action() refactoring
refactoring was done in Revision: 3261 revid:fme@openerp.com-20121017145548-oc9s6oadhwzbr78m bzr revid: fme@openerp.com-20121022124135-ifaj0mm1vd2zjxyo
This commit is contained in:
parent
5554379e1b
commit
b631b13742
|
@ -1068,9 +1068,11 @@ instance.web.Sidebar = instance.web.Widget.extend({
|
|||
additional_context);
|
||||
result.flags = result.flags || {};
|
||||
result.flags.new_window = true;
|
||||
self.do_action(result, function () {
|
||||
// reload view
|
||||
self.getParent().reload();
|
||||
self.do_action(result, {
|
||||
on_close: function() {
|
||||
// reload view
|
||||
self.getParent().reload();
|
||||
},
|
||||
});
|
||||
});
|
||||
});
|
||||
|
@ -1216,7 +1218,9 @@ instance.web.View = instance.web.Widget.extend({
|
|||
/* niv: previously we were overriding once more with action_data.context,
|
||||
* I assumed this was not a correct behavior and removed it
|
||||
*/
|
||||
return self.do_action(action, result_handler);
|
||||
return self.do_action(action, {
|
||||
on_close: result_handler,
|
||||
});
|
||||
}, null);
|
||||
} else {
|
||||
return result_handler();
|
||||
|
|
Loading…
Reference in New Issue