[14.0] [IMP] web_ir_actions_act_multi: black, isort, prettier

This commit is contained in:
koen
2020-12-03 17:11:13 +01:00
committed by Raf Ven
parent de669874af
commit 7799c74bce
7 changed files with 19 additions and 26 deletions

View File

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

View File

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

View File

@@ -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 <https://github.com/OCA/web/tree/13.0/web_ir_actions_act_multi>`_ project on GitHub.
This module is part of the `OCA/web <https://github.com/OCA/web/tree/14.0/web_ir_actions_act_multi>`_ project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

View File

@@ -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,

View File

@@ -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"

View File

@@ -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"

View File

@@ -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);
};