From 4fc0402a19e19e60caf03ff18ca160edf0ba7d46 Mon Sep 17 00:00:00 2001 From: Marcos Oitaben Date: Thu, 16 Nov 2023 09:09:31 +0100 Subject: [PATCH] [IMP] web_widget_open_tab: pre-commit stuff --- web_widget_open_tab/README.rst | 53 ++++++++++--------- web_widget_open_tab/pyproject.toml | 3 ++ web_widget_open_tab/readme/CONTRIBUTORS.md | 5 ++ web_widget_open_tab/readme/CONTRIBUTORS.rst | 6 --- web_widget_open_tab/readme/DESCRIPTION.md | 4 ++ web_widget_open_tab/readme/DESCRIPTION.rst | 3 -- .../readme/{ROADMAP.rst => ROADMAP.md} | 0 web_widget_open_tab/readme/USAGE.md | 13 +++++ web_widget_open_tab/readme/USAGE.rst | 11 ---- .../static/description/index.html | 29 +++++----- 10 files changed, 69 insertions(+), 58 deletions(-) create mode 100644 web_widget_open_tab/pyproject.toml create mode 100644 web_widget_open_tab/readme/CONTRIBUTORS.md delete mode 100644 web_widget_open_tab/readme/CONTRIBUTORS.rst create mode 100644 web_widget_open_tab/readme/DESCRIPTION.md delete mode 100644 web_widget_open_tab/readme/DESCRIPTION.rst rename web_widget_open_tab/readme/{ROADMAP.rst => ROADMAP.md} (100%) create mode 100644 web_widget_open_tab/readme/USAGE.md delete mode 100644 web_widget_open_tab/readme/USAGE.rst diff --git a/web_widget_open_tab/README.rst b/web_widget_open_tab/README.rst index 183a64308..8391be55e 100644 --- a/web_widget_open_tab/README.rst +++ b/web_widget_open_tab/README.rst @@ -17,20 +17,21 @@ Widget Open on new Tab :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_widget_open_tab + :target: https://github.com/OCA/web/tree/17.0/web_widget_open_tab :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_widget_open_tab + :target: https://translation.odoo-community.org/projects/web-17-0/web-17-0-web_widget_open_tab :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 introduces a new widget. -When added to a field in a tree view, the field appears as a button which opens the record in a new tab. -When clicking on the line (but not on the button), the record is opened in the same window (as in native Odoo). +This addon introduces a new widget. When added to a field in a tree +view, the field appears as a button which opens the record in a new tab. +When clicking on the line (but not on the button), the record is opened +in the same window (as in native Odoo). **Table of contents** @@ -40,22 +41,24 @@ When clicking on the line (but not on the button), the record is opened in the s Usage ===== -Edit the tree view and add the widget as the first field, usually, we should use: -.. code-block:: xml +Edit the tree view and add the widget as the first field, usually, we +should use: .. code-block:: xml - + -You can open the record in a new tab when clicking with the mouse wheel on the external link icon. -On a usual click the record will be opened without changes (keeping the breadcrumbs). +You can open the record in a new tab when clicking with the mouse wheel +on the external link icon. On a usual click the record will be opened +without changes (keeping the breadcrumbs). -You can also add open-tab field in tree views by selecting "Add Open Tab Field" field in -the ir.model record. When you do this, the open-tab field is added right after the name -field in the tree if the field exists, otherwise at the beginning of the tree. +You can also add open-tab field in tree views by selecting "Add Open Tab +Field" field in the ir.model record. When you do this, the open-tab +field is added right after the name field in the tree if the field +exists, otherwise at the beginning of the tree. Known issues / Roadmap ====================== -- Add many2one fields support. +- Add many2one fields support. Bug Tracker =========== @@ -63,7 +66,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. @@ -71,22 +74,22 @@ Credits ======= Authors -~~~~~~~ +------- * Creu Blanca Contributors -~~~~~~~~~~~~ +------------ -* Enric Tobella -* Raf Ven -* Dhara Solanki -* `Quartile `__: +- Enric Tobella +- Raf Ven +- Dhara Solanki +- `Quartile `__: - * Aung Ko Ko Lin + - Aung Ko Ko Lin Maintainers -~~~~~~~~~~~ +----------- This module is maintained by the OCA. @@ -98,6 +101,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_widget_open_tab/pyproject.toml b/web_widget_open_tab/pyproject.toml new file mode 100644 index 000000000..4231d0ccc --- /dev/null +++ b/web_widget_open_tab/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/web_widget_open_tab/readme/CONTRIBUTORS.md b/web_widget_open_tab/readme/CONTRIBUTORS.md new file mode 100644 index 000000000..dfb8714e2 --- /dev/null +++ b/web_widget_open_tab/readme/CONTRIBUTORS.md @@ -0,0 +1,5 @@ +- Enric Tobella \<\> +- Raf Ven \<\> +- Dhara Solanki \<\> +- [Quartile](https://www.quartile.co): + - Aung Ko Ko Lin diff --git a/web_widget_open_tab/readme/CONTRIBUTORS.rst b/web_widget_open_tab/readme/CONTRIBUTORS.rst deleted file mode 100644 index 84b084275..000000000 --- a/web_widget_open_tab/readme/CONTRIBUTORS.rst +++ /dev/null @@ -1,6 +0,0 @@ -* Enric Tobella -* Raf Ven -* Dhara Solanki -* `Quartile `__: - - * Aung Ko Ko Lin diff --git a/web_widget_open_tab/readme/DESCRIPTION.md b/web_widget_open_tab/readme/DESCRIPTION.md new file mode 100644 index 000000000..21e03d94d --- /dev/null +++ b/web_widget_open_tab/readme/DESCRIPTION.md @@ -0,0 +1,4 @@ +This addon introduces a new widget. When added to a field in a tree +view, the field appears as a button which opens the record in a new tab. +When clicking on the line (but not on the button), the record is opened +in the same window (as in native Odoo). diff --git a/web_widget_open_tab/readme/DESCRIPTION.rst b/web_widget_open_tab/readme/DESCRIPTION.rst deleted file mode 100644 index c202ca5be..000000000 --- a/web_widget_open_tab/readme/DESCRIPTION.rst +++ /dev/null @@ -1,3 +0,0 @@ -This addon introduces a new widget. -When added to a field in a tree view, the field appears as a button which opens the record in a new tab. -When clicking on the line (but not on the button), the record is opened in the same window (as in native Odoo). diff --git a/web_widget_open_tab/readme/ROADMAP.rst b/web_widget_open_tab/readme/ROADMAP.md similarity index 100% rename from web_widget_open_tab/readme/ROADMAP.rst rename to web_widget_open_tab/readme/ROADMAP.md diff --git a/web_widget_open_tab/readme/USAGE.md b/web_widget_open_tab/readme/USAGE.md new file mode 100644 index 000000000..d075c1498 --- /dev/null +++ b/web_widget_open_tab/readme/USAGE.md @@ -0,0 +1,13 @@ +Edit the tree view and add the widget as the first field, usually, we +should use: .. code-block:: xml + +> \ + +You can open the record in a new tab when clicking with the mouse wheel +on the external link icon. On a usual click the record will be opened +without changes (keeping the breadcrumbs). + +You can also add open-tab field in tree views by selecting "Add Open Tab +Field" field in the ir.model record. When you do this, the open-tab +field is added right after the name field in the tree if the field +exists, otherwise at the beginning of the tree. diff --git a/web_widget_open_tab/readme/USAGE.rst b/web_widget_open_tab/readme/USAGE.rst deleted file mode 100644 index 3e4bb3c66..000000000 --- a/web_widget_open_tab/readme/USAGE.rst +++ /dev/null @@ -1,11 +0,0 @@ -Edit the tree view and add the widget as the first field, usually, we should use: -.. code-block:: xml - - - -You can open the record in a new tab when clicking with the mouse wheel on the external link icon. -On a usual click the record will be opened without changes (keeping the breadcrumbs). - -You can also add open-tab field in tree views by selecting "Add Open Tab Field" field in -the ir.model record. When you do this, the open-tab field is added right after the name -field in the tree if the field exists, otherwise at the beginning of the tree. diff --git a/web_widget_open_tab/static/description/index.html b/web_widget_open_tab/static/description/index.html index c2193379a..01dcbde22 100644 --- a/web_widget_open_tab/static/description/index.html +++ b/web_widget_open_tab/static/description/index.html @@ -369,10 +369,11 @@ ul.auto-toc { !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! source digest: sha256:a14f7a08311efe9efc5c2e59a089a3adfe9f4a41cafd1c7c4c8bf9aac5db6706 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

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

-

This addon introduces a new widget. -When added to a field in a tree view, the field appears as a button which opens the record in a new tab. -When clicking on the line (but not on the button), the record is opened in the same window (as in native Odoo).

+

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

+

This addon introduces a new widget. When added to a field in a tree +view, the field appears as a button which opens the record in a new tab. +When clicking on the line (but not on the button), the record is opened +in the same window (as in native Odoo).

Table of contents

    @@ -389,15 +390,17 @@ When clicking on the line (but not on the button), the record is opened in the s

Usage

-

Edit the tree view and add the widget as the first field, usually, we should use: -.. code-block:: xml

+

Edit the tree view and add the widget as the first field, usually, we +should use: .. code-block:: xml

<field name=”id” widget=”open_tab”/>
-

You can open the record in a new tab when clicking with the mouse wheel on the external link icon. -On a usual click the record will be opened without changes (keeping the breadcrumbs).

-

You can also add open-tab field in tree views by selecting “Add Open Tab Field” field in -the ir.model record. When you do this, the open-tab field is added right after the name -field in the tree if the field exists, otherwise at the beginning of the tree.

+

You can open the record in a new tab when clicking with the mouse wheel +on the external link icon. On a usual click the record will be opened +without changes (keeping the breadcrumbs).

+

You can also add open-tab field in tree views by selecting “Add Open Tab +Field” field in the ir.model record. When you do this, the open-tab +field is added right after the name field in the tree if the field +exists, otherwise at the beginning of the tree.

Known issues / Roadmap

@@ -410,7 +413,7 @@ field in the tree if the field exists, otherwise at the beginning of the tree.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.

@@ -440,7 +443,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.