From 7799c74bce4b6cce98074a404bed2706c51cc495 Mon Sep 17 00:00:00 2001 From: koen Date: Thu, 3 Dec 2020 17:11:13 +0100 Subject: [PATCH] [14.0] [IMP] web_ir_actions_act_multi: black, isort, prettier --- .../odoo/addons/web_ir_actions_act_multi | 1 + setup/web_ir_actions_act_multi/setup.py | 6 ++++++ web_ir_actions_act_multi/README.rst | 10 +++++----- web_ir_actions_act_multi/__manifest__.py | 4 ++-- .../i18n/web_ir_actions_act_multi.pot | 2 +- web_ir_actions_act_multi/i18n/zh_CN.po | 14 -------------- .../static/src/js/web_ir_actions_act_multi.js | 8 ++++---- 7 files changed, 19 insertions(+), 26 deletions(-) create mode 120000 setup/web_ir_actions_act_multi/odoo/addons/web_ir_actions_act_multi create mode 100644 setup/web_ir_actions_act_multi/setup.py delete mode 100644 web_ir_actions_act_multi/i18n/zh_CN.po diff --git a/setup/web_ir_actions_act_multi/odoo/addons/web_ir_actions_act_multi b/setup/web_ir_actions_act_multi/odoo/addons/web_ir_actions_act_multi new file mode 120000 index 000000000..70dacab21 --- /dev/null +++ b/setup/web_ir_actions_act_multi/odoo/addons/web_ir_actions_act_multi @@ -0,0 +1 @@ +../../../../web_ir_actions_act_multi \ No newline at end of file diff --git a/setup/web_ir_actions_act_multi/setup.py b/setup/web_ir_actions_act_multi/setup.py new file mode 100644 index 000000000..28c57bb64 --- /dev/null +++ b/setup/web_ir_actions_act_multi/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +) diff --git a/web_ir_actions_act_multi/README.rst b/web_ir_actions_act_multi/README.rst index 0df5f38e8..d405ef8b2 100644 --- a/web_ir_actions_act_multi/README.rst +++ b/web_ir_actions_act_multi/README.rst @@ -14,16 +14,16 @@ Web Actions Multi :target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html :alt: License: LGPL-3 .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fweb-lightgray.png?logo=github - :target: https://github.com/OCA/web/tree/13.0/web_ir_actions_act_multi + :target: https://github.com/OCA/web/tree/14.0/web_ir_actions_act_multi :alt: OCA/web .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/web-13-0/web-13-0-web_ir_actions_act_multi + :target: https://translation.odoo-community.org/projects/web-14-0/web-14-0-web_ir_actions_act_multi :alt: Translate me on Weblate .. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png - :target: https://runbot.odoo-community.org/runbot/162/13.0 + :target: https://runbot.odoo-community.org/runbot/162/14.0 :alt: Try me on Runbot -|badge1| |badge2| |badge3| |badge4| |badge5| +|badge1| |badge2| |badge3| |badge4| |badge5| This module provides a way to trigger more than one action on ActionManager @@ -93,6 +93,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use. -This module is part of the `OCA/web `_ project on GitHub. +This module is part of the `OCA/web `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/web_ir_actions_act_multi/__manifest__.py b/web_ir_actions_act_multi/__manifest__.py index 46393f20f..5ca074fa6 100644 --- a/web_ir_actions_act_multi/__manifest__.py +++ b/web_ir_actions_act_multi/__manifest__.py @@ -8,10 +8,10 @@ "name": "Web Actions Multi", "summary": "Enables triggering of more than one action on 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_multi.xml"], "installable": True, diff --git a/web_ir_actions_act_multi/i18n/web_ir_actions_act_multi.pot b/web_ir_actions_act_multi/i18n/web_ir_actions_act_multi.pot index cc93d01ee..4d8b20f91 100644 --- a/web_ir_actions_act_multi/i18n/web_ir_actions_act_multi.pot +++ b/web_ir_actions_act_multi/i18n/web_ir_actions_act_multi.pot @@ -3,7 +3,7 @@ # msgid "" msgstr "" -"Project-Id-Version: Odoo Server 13.0\n" +"Project-Id-Version: Odoo Server 14.0\n" "Report-Msgid-Bugs-To: \n" "Last-Translator: \n" "Language-Team: \n" diff --git a/web_ir_actions_act_multi/i18n/zh_CN.po b/web_ir_actions_act_multi/i18n/zh_CN.po deleted file mode 100644 index 4159be77e..000000000 --- a/web_ir_actions_act_multi/i18n/zh_CN.po +++ /dev/null @@ -1,14 +0,0 @@ -# Translation of Odoo Server. -# This file contains the translation of the following modules: -# -msgid "" -msgstr "" -"Project-Id-Version: Odoo Server 12.0\n" -"Report-Msgid-Bugs-To: \n" -"Last-Translator: Automatically generated\n" -"Language-Team: none\n" -"Language: zh_CN\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: \n" -"Plural-Forms: nplurals=1; plural=0;\n" diff --git a/web_ir_actions_act_multi/static/src/js/web_ir_actions_act_multi.js b/web_ir_actions_act_multi/static/src/js/web_ir_actions_act_multi.js index 5905ebca0..c3a9c72a8 100644 --- a/web_ir_actions_act_multi/static/src/js/web_ir_actions_act_multi.js +++ b/web_ir_actions_act_multi/static/src/js/web_ir_actions_act_multi.js @@ -3,7 +3,7 @@ // Copyright 2020 Manuel Calero - Tecnativa // License LGPLv3.0 or later (https://www.gnu.org/licenses/lgpl-3.0.en.html). -odoo.define("web_ir_actions_act_multi.ir_actions_act_multi", function(require) { +odoo.define("web_ir_actions_act_multi.ir_actions_act_multi", function (require) { "use strict"; var ActionManager = require("web.ActionManager"); @@ -13,7 +13,7 @@ odoo.define("web_ir_actions_act_multi.ir_actions_act_multi", function(require) { * Intercept action handling to detect extra action type * @override */ - _handleAction: function(action, options) { + _handleAction: function (action, options) { if (action.type === "ir.actions.act_multi") { return this._executeMultiAction(action, options); } @@ -26,11 +26,11 @@ odoo.define("web_ir_actions_act_multi.ir_actions_act_multi", function(require) { * @param {Object} options see _handleAction() parameters * @returns {$.Promise} */ - _executeMultiAction: function(action, options) { + _executeMultiAction: function (action, options) { const self = this; return action.actions - .map(item => { + .map((item) => { return () => { return self._handleAction(item, options); };