[IMP] pre-commit run after update

Includes some manual fixes to silent ESLint warnings.

[UPD] README.rst

[UPD] README.rst
This commit is contained in:
Jairo Llopis
2020-01-24 13:45:39 +00:00
committed by Ryan Cole
parent 7e38c823f7
commit ddc66dd2b9
4 changed files with 20 additions and 18 deletions

View File

@@ -1,19 +1,20 @@
// 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 (require) {
odoo.define("web_ir_actions_act_view_reload.ir_actions_act_view_reload", function(
require
) {
"use strict";
var ActionManager = require('web.ActionManager');
var ActionManager = require("web.ActionManager");
ActionManager.include({
/**
* Intercept action handling to detect extra action type
* @override
*/
_handleAction: function (action, options) {
if (action.type === 'ir.actions.act_view_reload') {
_handleAction: function(action, options) {
if (action.type === "ir.actions.act_view_reload") {
return this._executeReloadAction(action, options);
}
@@ -24,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();
@@ -32,7 +33,5 @@ odoo.define('web_ir_actions_act_view_reload.ir_actions_act_view_reload', functio
return Promise.resolve();
},
});
});