3
0
Fork 0

web_ir_actions_act_window_message: always refresh view after action

12.0
Zakaria Makrelouf 2017-05-07 10:16:19 +01:00 committed by Abraham Anes
parent 1608e96d50
commit 256ec70da1
No known key found for this signature in database
GPG Key ID: 1865EBA8F25B5188
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);
}
else
{
if(
self.inner_widget &&
self.inner_widget.views
)
{
self.inner_widget
.views[self.inner_widget.active_view]
.controller.recursive_reload();
}
}
// always refresh the view after the action
// ex: action updates a status
self.inner_widget.active_view
.controller.recursive_reload();
});
}
else{