[MIG] web_ir_actions_act_view_reload: Migration to 14.0

pull/1816/head
paidykumar 2021-02-06 17:11:42 +05:30
parent 879a726487
commit 71f64602b6
4 changed files with 12 additions and 5 deletions

View File

@ -0,0 +1 @@
../../../../web_ir_actions_act_view_reload

View File

@ -0,0 +1,6 @@
import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)

View File

@ -7,10 +7,10 @@
"name": "Web Actions View Reload", "name": "Web Actions View Reload",
"summary": "Enables reload of the current view via ActionManager", "summary": "Enables reload of the current view via ActionManager",
"category": "Web", "category": "Web",
"version": "13.0.1.0.0", "version": "14.0.1.0.0",
"license": "LGPL-3", "license": "LGPL-3",
"author": "Modoolar, CorporateHub, Odoo Community Association (OCA)", "author": "Modoolar, CorporateHub, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/web/", "website": "https://github.com/OCA/web",
"depends": ["web"], "depends": ["web"],
"data": ["views/web_ir_actions_act_view_reload.xml"], "data": ["views/web_ir_actions_act_view_reload.xml"],
"installable": True, "installable": True,

View File

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