From b2a400d74f66d567089cb9f97261c45b92da6378 Mon Sep 17 00:00:00 2001 From: David Date: Thu, 27 Mar 2025 11:37:51 +0100 Subject: [PATCH] [IMP] web_ir_actions_act_multi: pre-commit auto fixes --- web_ir_actions_act_multi/README.rst | 54 ++++++++++--------- web_ir_actions_act_multi/models/ir_model.py | 2 +- web_ir_actions_act_multi/pyproject.toml | 3 ++ .../readme/CONTRIBUTORS.md | 6 +++ .../readme/CONTRIBUTORS.rst | 8 --- .../readme/DESCRIPTION.md | 2 + .../readme/DESCRIPTION.rst | 1 - web_ir_actions_act_multi/readme/USAGE.md | 14 +++++ web_ir_actions_act_multi/readme/USAGE.rst | 13 ----- .../static/description/index.html | 12 +++-- .../src/js/web_ir_actions_act_multi.esm.js | 2 +- 11 files changed, 62 insertions(+), 55 deletions(-) create mode 100644 web_ir_actions_act_multi/pyproject.toml create mode 100644 web_ir_actions_act_multi/readme/CONTRIBUTORS.md delete mode 100644 web_ir_actions_act_multi/readme/CONTRIBUTORS.rst create mode 100644 web_ir_actions_act_multi/readme/DESCRIPTION.md delete mode 100644 web_ir_actions_act_multi/readme/DESCRIPTION.rst create mode 100644 web_ir_actions_act_multi/readme/USAGE.md delete mode 100644 web_ir_actions_act_multi/readme/USAGE.rst diff --git a/web_ir_actions_act_multi/README.rst b/web_ir_actions_act_multi/README.rst index 28bb5b506..54e5403b6 100644 --- a/web_ir_actions_act_multi/README.rst +++ b/web_ir_actions_act_multi/README.rst @@ -17,18 +17,19 @@ 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/16.0/web_ir_actions_act_multi + :target: https://github.com/OCA/web/tree/18.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-16-0/web-16-0-web_ir_actions_act_multi + :target: https://translation.odoo-community.org/projects/web-18-0/web-18-0-web_ir_actions_act_multi :alt: Translate me on Weblate .. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png - :target: https://runboat.odoo-community.org/builds?repo=OCA/web&target_branch=16.0 + :target: https://runboat.odoo-community.org/builds?repo=OCA/web&target_branch=18.0 :alt: Try me on Runboat |badge1| |badge2| |badge3| |badge4| |badge5| -This module provides a way to trigger more than one action on ActionManager +This module provides a way to trigger more than one action on +ActionManager **Table of contents** @@ -38,19 +39,20 @@ This module provides a way to trigger more than one action on ActionManager Usage ===== -To use this functionality you need to return following action with list of actions to execute: +To use this functionality you need to return following action with list +of actions to execute: -.. code-block:: python +.. code:: python - def foo(self): - self.ensure_one() - return { - 'type': 'ir.actions.act_multi', - 'actions': [ - {'type': 'ir.actions.act_window_close'}, - {'type': 'ir.actions.client', 'tag': 'reload'}, - ] - } + def foo(self): + self.ensure_one() + return { + 'type': 'ir.actions.act_multi', + 'actions': [ + {'type': 'ir.actions.act_window_close'}, + {'type': 'ir.actions.client', 'tag': 'reload'}, + ] + } Bug Tracker =========== @@ -58,7 +60,7 @@ Bug Tracker Bugs are tracked on `GitHub Issues `_. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed -`feedback `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -66,25 +68,25 @@ Credits ======= Authors -~~~~~~~ +------- * Modoolar * CorporateHub Contributors -~~~~~~~~~~~~ +------------ -* Petar Najman -* Mladen Meseldzija -* `CorporateHub `__ +- Petar Najman +- Mladen Meseldzija +- `CorporateHub `__ - * Alexey Pelykh + - Alexey Pelykh -* Manuel Calero - Tecnativa -* Matias Peralta, Juan Rivero - Adhoc +- Manuel Calero - Tecnativa +- Matias Peralta, Juan Rivero - Adhoc Maintainers -~~~~~~~~~~~ +----------- This module is maintained by the OCA. @@ -96,6 +98,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/models/ir_model.py b/web_ir_actions_act_multi/models/ir_model.py index 3da5fbc2e..d891a8196 100644 --- a/web_ir_actions_act_multi/models/ir_model.py +++ b/web_ir_actions_act_multi/models/ir_model.py @@ -10,7 +10,7 @@ class IrModelData(models.Model): # related to ir.actions.act_multi. if "web_ir_actions_act_multi" in modules_to_remove: self = self.with_context(uninstall_web_ir_actions_act_multi=True) - return super(IrModelData, self)._module_data_uninstall(modules_to_remove) + return super()._module_data_uninstall(modules_to_remove) class IrModel(models.Model): diff --git a/web_ir_actions_act_multi/pyproject.toml b/web_ir_actions_act_multi/pyproject.toml new file mode 100644 index 000000000..4231d0ccc --- /dev/null +++ b/web_ir_actions_act_multi/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/web_ir_actions_act_multi/readme/CONTRIBUTORS.md b/web_ir_actions_act_multi/readme/CONTRIBUTORS.md new file mode 100644 index 000000000..23bd24d42 --- /dev/null +++ b/web_ir_actions_act_multi/readme/CONTRIBUTORS.md @@ -0,0 +1,6 @@ +- Petar Najman \<\> +- Mladen Meseldzija \<\> +- [CorporateHub](https://corporatehub.eu/) + - Alexey Pelykh \<\> +- Manuel Calero - Tecnativa +- Matias Peralta, Juan Rivero - Adhoc diff --git a/web_ir_actions_act_multi/readme/CONTRIBUTORS.rst b/web_ir_actions_act_multi/readme/CONTRIBUTORS.rst deleted file mode 100644 index 0fe7835e0..000000000 --- a/web_ir_actions_act_multi/readme/CONTRIBUTORS.rst +++ /dev/null @@ -1,8 +0,0 @@ -* Petar Najman -* Mladen Meseldzija -* `CorporateHub `__ - - * Alexey Pelykh - -* Manuel Calero - Tecnativa -* Matias Peralta, Juan Rivero - Adhoc diff --git a/web_ir_actions_act_multi/readme/DESCRIPTION.md b/web_ir_actions_act_multi/readme/DESCRIPTION.md new file mode 100644 index 000000000..0ee21853c --- /dev/null +++ b/web_ir_actions_act_multi/readme/DESCRIPTION.md @@ -0,0 +1,2 @@ +This module provides a way to trigger more than one action on +ActionManager diff --git a/web_ir_actions_act_multi/readme/DESCRIPTION.rst b/web_ir_actions_act_multi/readme/DESCRIPTION.rst deleted file mode 100644 index 6e6a6c791..000000000 --- a/web_ir_actions_act_multi/readme/DESCRIPTION.rst +++ /dev/null @@ -1 +0,0 @@ -This module provides a way to trigger more than one action on ActionManager diff --git a/web_ir_actions_act_multi/readme/USAGE.md b/web_ir_actions_act_multi/readme/USAGE.md new file mode 100644 index 000000000..3bc1e981a --- /dev/null +++ b/web_ir_actions_act_multi/readme/USAGE.md @@ -0,0 +1,14 @@ +To use this functionality you need to return following action with list +of actions to execute: + +``` python +def foo(self): + self.ensure_one() + return { + 'type': 'ir.actions.act_multi', + 'actions': [ + {'type': 'ir.actions.act_window_close'}, + {'type': 'ir.actions.client', 'tag': 'reload'}, + ] + } +``` diff --git a/web_ir_actions_act_multi/readme/USAGE.rst b/web_ir_actions_act_multi/readme/USAGE.rst deleted file mode 100644 index eadf01451..000000000 --- a/web_ir_actions_act_multi/readme/USAGE.rst +++ /dev/null @@ -1,13 +0,0 @@ -To use this functionality you need to return following action with list of actions to execute: - -.. code-block:: python - - def foo(self): - self.ensure_one() - return { - 'type': 'ir.actions.act_multi', - 'actions': [ - {'type': 'ir.actions.act_window_close'}, - {'type': 'ir.actions.client', 'tag': 'reload'}, - ] - } diff --git a/web_ir_actions_act_multi/static/description/index.html b/web_ir_actions_act_multi/static/description/index.html index 814d795ee..fdd05c1a9 100644 --- a/web_ir_actions_act_multi/static/description/index.html +++ b/web_ir_actions_act_multi/static/description/index.html @@ -369,8 +369,9 @@ ul.auto-toc { !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! source digest: sha256:2748259f3e8355dce1c410234958cf54f9b9c3041d67d18d2f1bf126649da427 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

Beta License: LGPL-3 OCA/web Translate me on Weblate Try me on Runboat

-

This module provides a way to trigger more than one action on ActionManager

+

Beta License: LGPL-3 OCA/web Translate me on Weblate Try me on Runboat

+

This module provides a way to trigger more than one action on +ActionManager

Table of contents

    @@ -386,7 +387,8 @@ ul.auto-toc {

Usage

-

To use this functionality you need to return following action with list of actions to execute:

+

To use this functionality you need to return following action with list +of actions to execute:

 def foo(self):
    self.ensure_one()
@@ -404,7 +406,7 @@ ul.auto-toc {
 

Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed -feedback.

+feedback.

Do not contact contributors directly about support or help with technical issues.

@@ -438,7 +440,7 @@ If you spotted it first, help us to smash it by providing a detailed and welcome

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/static/src/js/web_ir_actions_act_multi.esm.js b/web_ir_actions_act_multi/static/src/js/web_ir_actions_act_multi.esm.js index 74bad577e..e82c052c6 100644 --- a/web_ir_actions_act_multi/static/src/js/web_ir_actions_act_multi.esm.js +++ b/web_ir_actions_act_multi/static/src/js/web_ir_actions_act_multi.esm.js @@ -4,7 +4,7 @@ import {registry} from "@web/core/registry"; /** * Handle 'ir.actions.act_multi' action - * @param {object} action see _handleAction() parameters + * @param {Object} action see _handleAction() parameters * @returns {$.Promise} */