3
0
Fork 0

web_ir_actions_act_window_message: always refresh view after action

10.0
Zakaria Makrelouf 2017-05-07 10:16:19 +01:00 committed by Jairo Llopis
parent 12f6eeb450
commit a10139c559
1 changed files with 4 additions and 12 deletions

View File

@ -71,18 +71,10 @@ odoo.define('web.web_ir_actions_act_window_message', function (require) {
{ {
self.do_action(result); self.do_action(result);
} }
else // always refresh the view after the action
{ // ex: action updates a status
if( self.inner_widget.active_view
self.inner_widget && .controller.recursive_reload();
self.inner_widget.views
)
{
self.inner_widget
.views[self.inner_widget.active_view]
.controller.recursive_reload();
}
}
}); });
} }
else{ else{