[MIG] web_ir_actions_act_view_reload: Migration to 14.0

[UPD] Update web_ir_actions_act_view_reload.pot

[UPD] README.rst
This commit is contained in:
paidykumar
2021-02-06 17:11:42 +05:30
committed by Ryan Cole
parent f826b96d91
commit 00e6c052c2
5 changed files with 14 additions and 14 deletions

View File

@@ -1,7 +1,7 @@
// Copyright 2017 - 2018 Modoolar <info@modoolar.com>
// Copyright 2018 Modoolar <info@modoolar.com>
// License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
odoo.define("web_ir_actions_act_view_reload.ir_actions_act_view_reload", function(
odoo.define("web_ir_actions_act_view_reload.ir_actions_act_view_reload", function (
require
) {
"use strict";
@@ -13,7 +13,7 @@ odoo.define("web_ir_actions_act_view_reload.ir_actions_act_view_reload", functio
* Intercept action handling to detect extra action type
* @override
*/
_handleAction: function(action, options) {
_handleAction: function (action, options) {
if (action.type === "ir.actions.act_view_reload") {
return this._executeReloadAction(action, options);
}
@@ -25,7 +25,7 @@ odoo.define("web_ir_actions_act_view_reload.ir_actions_act_view_reload", functio
* Handle 'ir.actions.act_view_reload' action
* @returns {Promise} Resolved promise
*/
_executeReloadAction: function() {
_executeReloadAction: function () {
var controller = this.getCurrentController();
if (controller && controller.widget) {
controller.widget.reload();