mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
[MIG] web_ir_actions_act_view_reload: Migration to 14.0
This commit is contained in:
@@ -0,0 +1 @@
|
||||
../../../../web_ir_actions_act_view_reload
|
||||
6
setup/web_ir_actions_act_view_reload/setup.py
Normal file
6
setup/web_ir_actions_act_view_reload/setup.py
Normal file
@@ -0,0 +1,6 @@
|
||||
import setuptools
|
||||
|
||||
setuptools.setup(
|
||||
setup_requires=['setuptools-odoo'],
|
||||
odoo_addon=True,
|
||||
)
|
||||
@@ -7,10 +7,10 @@
|
||||
"name": "Web Actions View Reload",
|
||||
"summary": "Enables reload of the current view via ActionManager",
|
||||
"category": "Web",
|
||||
"version": "13.0.1.0.0",
|
||||
"version": "14.0.1.0.0",
|
||||
"license": "LGPL-3",
|
||||
"author": "Modoolar, CorporateHub, Odoo Community Association (OCA)",
|
||||
"website": "https://github.com/OCA/web/",
|
||||
"website": "https://github.com/OCA/web",
|
||||
"depends": ["web"],
|
||||
"data": ["views/web_ir_actions_act_view_reload.xml"],
|
||||
"installable": True,
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user