mirror of https://github.com/OCA/web.git
[MIG] web_ir_actions_act_view_reload: Migration to 14.0
parent
879a726487
commit
71f64602b6
|
@ -0,0 +1 @@
|
|||
../../../../web_ir_actions_act_view_reload
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue