I am trying to execute an action after a wizard action is performed, i want to reload a kanban:
Python code:
return {'type': 'ir.actions.act_close_wizard_and_reload_view', }
Javascript code: (taken from the forum, i think for version 7)
openerp.bmwe_crm = function(instance, local) {
instance.web.ActionManager = instance.web.ActionManager.extend({
ir_actions_act_close_wizard_and_reload_view: function (action, options) {
if (!this.dialog) {
options.on_close();
}
this.dialog_stop();
this.inner_widget.views[this.inner_widget.active_view].controller.reload();
return $.when();
}
});
}
All this from a forum about 7.0 version, but i am using 8.0 and it does not seems to work. I've even trying executing a default action:
return { 'type': 'ir.actions.client', 'tag': 'reload'}
Does not reload the page neither