From 12bd36f07fc7c3c327d50200e51bdd23534c104b Mon Sep 17 00:00:00 2001 From: maciej-wichowski Date: Fri, 22 Mar 2024 12:40:40 +0100 Subject: [PATCH] [IMP] web_tree_many2one_clickable: black, isort, prettier --- web_tree_many2one_clickable/README.rst | 49 ++++++++++--------- web_tree_many2one_clickable/pyproject.toml | 3 ++ .../readme/CONTRIBUTORS.md | 8 +++ .../readme/CONTRIBUTORS.rst | 8 --- .../{DESCRIPTION.rst => DESCRIPTION.md} | 4 +- web_tree_many2one_clickable/readme/ROADMAP.md | 6 +++ .../readme/ROADMAP.rst | 5 -- .../readme/{USAGE.rst => USAGE.md} | 2 +- .../static/description/index.html | 21 ++++---- 9 files changed, 57 insertions(+), 49 deletions(-) create mode 100644 web_tree_many2one_clickable/pyproject.toml create mode 100644 web_tree_many2one_clickable/readme/CONTRIBUTORS.md delete mode 100644 web_tree_many2one_clickable/readme/CONTRIBUTORS.rst rename web_tree_many2one_clickable/readme/{DESCRIPTION.rst => DESCRIPTION.md} (70%) create mode 100644 web_tree_many2one_clickable/readme/ROADMAP.md delete mode 100644 web_tree_many2one_clickable/readme/ROADMAP.rst rename web_tree_many2one_clickable/readme/{USAGE.rst => USAGE.md} (62%) diff --git a/web_tree_many2one_clickable/README.rst b/web_tree_many2one_clickable/README.rst index dac6d84a2..47d0286fe 100644 --- a/web_tree_many2one_clickable/README.rst +++ b/web_tree_many2one_clickable/README.rst @@ -17,20 +17,20 @@ Clickable many2one fields for tree views :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html :alt: License: AGPL-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_tree_many2one_clickable + :target: https://github.com/OCA/web/tree/17.0/web_tree_many2one_clickable :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_tree_many2one_clickable + :target: https://translation.odoo-community.org/projects/web-17-0/web-17-0-web_tree_many2one_clickable :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=17.0 :alt: Try me on Runboat |badge1| |badge2| |badge3| |badge4| |badge5| This addon forces Odoo to use many2one widget on a many2one fields in -tree views. This allows users to open linked resources from trees directly, -using a button without accessing the form. +tree views. This allows users to open linked resources from trees +directly, using a button without accessing the form. **Table of contents** @@ -42,16 +42,19 @@ Usage Put the mouse pointer over a many2one cell and click the button. -.. image:: https://raw.githubusercontent.com/OCA/web/16.0/web_tree_many2one_clickable/static/img/clickable.gif +|image| + +.. |image| image:: https://raw.githubusercontent.com/OCA/web/17.0/web_tree_many2one_clickable/static/img/clickable.gif Known issues / Roadmap ====================== -This widget is currently not working on the product field in the lines tree of the -sale order form, see https://github.com/OCA/web/pull/1438 for further details. +This widget is currently not working on the product field in the lines +tree of the sale order form, see https://github.com/OCA/web/pull/1438 +for further details. -To add this functionality to lines of sales, purchases and invoices, as they are -special views, is required a glue module that add this feature. +To add this functionality to lines of sales, purchases and invoices, as +they are special views, is required a glue module that add this feature. Bug Tracker =========== @@ -59,7 +62,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. @@ -67,7 +70,7 @@ Credits ======= Authors -~~~~~~~ +------- * Therp BV * Tecnativa @@ -75,19 +78,19 @@ Authors * Onestein Contributors -~~~~~~~~~~~~ +------------ -* Therp BV -* Pedro M. Baeza -* Antonio Espinosa -* Sodexis -* Artem Kostyuk -* Anand Kansagra -* Alexandre Díaz -* Dennis Sluijk +- Therp BV +- Pedro M. Baeza +- Antonio Espinosa +- Sodexis +- Artem Kostyuk +- Anand Kansagra +- Alexandre Díaz +- Dennis Sluijk Maintainers -~~~~~~~~~~~ +----------- This module is maintained by the OCA. @@ -99,6 +102,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_tree_many2one_clickable/pyproject.toml b/web_tree_many2one_clickable/pyproject.toml new file mode 100644 index 000000000..4231d0ccc --- /dev/null +++ b/web_tree_many2one_clickable/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/web_tree_many2one_clickable/readme/CONTRIBUTORS.md b/web_tree_many2one_clickable/readme/CONTRIBUTORS.md new file mode 100644 index 000000000..8c22eb86a --- /dev/null +++ b/web_tree_many2one_clickable/readme/CONTRIBUTORS.md @@ -0,0 +1,8 @@ +- Therp BV +- Pedro M. Baeza \<\> +- Antonio Espinosa \<\> +- Sodexis \<\> +- Artem Kostyuk \<\> +- Anand Kansagra \<\> +- Alexandre Díaz \<\> +- Dennis Sluijk \<\> diff --git a/web_tree_many2one_clickable/readme/CONTRIBUTORS.rst b/web_tree_many2one_clickable/readme/CONTRIBUTORS.rst deleted file mode 100644 index 448d7c0c3..000000000 --- a/web_tree_many2one_clickable/readme/CONTRIBUTORS.rst +++ /dev/null @@ -1,8 +0,0 @@ -* Therp BV -* Pedro M. Baeza -* Antonio Espinosa -* Sodexis -* Artem Kostyuk -* Anand Kansagra -* Alexandre Díaz -* Dennis Sluijk diff --git a/web_tree_many2one_clickable/readme/DESCRIPTION.rst b/web_tree_many2one_clickable/readme/DESCRIPTION.md similarity index 70% rename from web_tree_many2one_clickable/readme/DESCRIPTION.rst rename to web_tree_many2one_clickable/readme/DESCRIPTION.md index f4ceeb2db..8e07ea67a 100644 --- a/web_tree_many2one_clickable/readme/DESCRIPTION.rst +++ b/web_tree_many2one_clickable/readme/DESCRIPTION.md @@ -1,3 +1,3 @@ This addon forces Odoo to use many2one widget on a many2one fields in -tree views. This allows users to open linked resources from trees directly, -using a button without accessing the form. +tree views. This allows users to open linked resources from trees +directly, using a button without accessing the form. diff --git a/web_tree_many2one_clickable/readme/ROADMAP.md b/web_tree_many2one_clickable/readme/ROADMAP.md new file mode 100644 index 000000000..e24c53c65 --- /dev/null +++ b/web_tree_many2one_clickable/readme/ROADMAP.md @@ -0,0 +1,6 @@ +This widget is currently not working on the product field in the lines +tree of the sale order form, see +for further details. + +To add this functionality to lines of sales, purchases and invoices, as +they are special views, is required a glue module that add this feature. diff --git a/web_tree_many2one_clickable/readme/ROADMAP.rst b/web_tree_many2one_clickable/readme/ROADMAP.rst deleted file mode 100644 index 1c9c8cdc4..000000000 --- a/web_tree_many2one_clickable/readme/ROADMAP.rst +++ /dev/null @@ -1,5 +0,0 @@ -This widget is currently not working on the product field in the lines tree of the -sale order form, see https://github.com/OCA/web/pull/1438 for further details. - -To add this functionality to lines of sales, purchases and invoices, as they are -special views, is required a glue module that add this feature. diff --git a/web_tree_many2one_clickable/readme/USAGE.rst b/web_tree_many2one_clickable/readme/USAGE.md similarity index 62% rename from web_tree_many2one_clickable/readme/USAGE.rst rename to web_tree_many2one_clickable/readme/USAGE.md index 76d4ff733..0579fc795 100644 --- a/web_tree_many2one_clickable/readme/USAGE.rst +++ b/web_tree_many2one_clickable/readme/USAGE.md @@ -1,3 +1,3 @@ Put the mouse pointer over a many2one cell and click the button. -.. image:: ../static/img/clickable.gif +![image](../static/img/clickable.gif) diff --git a/web_tree_many2one_clickable/static/description/index.html b/web_tree_many2one_clickable/static/description/index.html index d96339c7c..69ccca8bf 100644 --- a/web_tree_many2one_clickable/static/description/index.html +++ b/web_tree_many2one_clickable/static/description/index.html @@ -369,10 +369,10 @@ ul.auto-toc { !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! source digest: sha256:2b8b8f544159751e2d6eec3db8f694788e672e6ccde284cf0783987f58441d3a !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

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

+

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

This addon forces Odoo to use many2one widget on a many2one fields in -tree views. This allows users to open linked resources from trees directly, -using a button without accessing the form.

+tree views. This allows users to open linked resources from trees +directly, using a button without accessing the form.

Table of contents

    @@ -390,21 +390,22 @@ using a button without accessing the form.

    Usage

    Put the mouse pointer over a many2one cell and click the button.

    -https://raw.githubusercontent.com/OCA/web/16.0/web_tree_many2one_clickable/static/img/clickable.gif +

    image

    Known issues / Roadmap

    -

    This widget is currently not working on the product field in the lines tree of the -sale order form, see https://github.com/OCA/web/pull/1438 for further details.

    -

    To add this functionality to lines of sales, purchases and invoices, as they are -special views, is required a glue module that add this feature.

    +

    This widget is currently not working on the product field in the lines +tree of the sale order form, see https://github.com/OCA/web/pull/1438 +for further details.

    +

    To add this functionality to lines of sales, purchases and invoices, as +they are special views, is required a glue module that add this feature.

    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.

    @@ -438,7 +439,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.