[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:
Fabien Meghazi 2012-10-22 14:41:35 +02:00
parent 5554379e1b
commit b631b13742
1 changed files with 8 additions and 4 deletions

View File

@ -1068,9 +1068,11 @@ instance.web.Sidebar = instance.web.Widget.extend({
additional_context); additional_context);
result.flags = result.flags || {}; result.flags = result.flags || {};
result.flags.new_window = true; result.flags.new_window = true;
self.do_action(result, function () { self.do_action(result, {
// reload view on_close: function() {
self.getParent().reload(); // 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, /* niv: previously we were overriding once more with action_data.context,
* I assumed this was not a correct behavior and removed it * 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); }, null);
} else { } else {
return result_handler(); return result_handler();