[MIG] web_ir_actions_act_view_reload: Migration to 13.0

This commit is contained in:
Guewen Baconnier
2019-12-16 15:10:02 +01:00
committed by Ryan Cole
parent 8cfc0644c5
commit 92f80830e4
4 changed files with 13 additions and 13 deletions

View File

@@ -9,7 +9,7 @@ odoo.define('web_ir_actions_act_view_reload.ir_actions_act_view_reload', functio
ActionManager.include({
/**
* Intersept action handling to detect extra action type
* Intercept action handling to detect extra action type
* @override
*/
_handleAction: function (action, options) {
@@ -22,7 +22,7 @@ odoo.define('web_ir_actions_act_view_reload.ir_actions_act_view_reload', functio
/**
* Handle 'ir.actions.act_view_reload' action
* @returns {$.Promise}
* @returns {Promise} Resolved promise
*/
_executeReloadAction: function () {
var controller = this.getCurrentController();
@@ -30,7 +30,7 @@ odoo.define('web_ir_actions_act_view_reload.ir_actions_act_view_reload', functio
controller.widget.reload();
}
return $.when();
return Promise.resolve();
},
});