From 10bd32bc4f9e722151ca7eb80f62be6642086ef8 Mon Sep 17 00:00:00 2001 From: Carlos Lopez Date: Tue, 4 Feb 2025 14:20:50 -0500 Subject: [PATCH] [IMP] web_widget_product_label_section_and_note: pre-commit auto fixes --- .../README.rst | 50 +++++++++++-------- .../pyproject.toml | 3 ++ .../readme/CONFIGURE.md | 8 +++ .../readme/CONFIGURE.rst | 8 --- .../readme/CONTRIBUTORS.md | 4 ++ .../readme/CONTRIBUTORS.rst | 4 -- .../{DESCRIPTION.rst => DESCRIPTION.md} | 3 +- .../readme/ROADMAP.md | 7 +++ .../readme/ROADMAP.rst | 3 -- .../readme/{USAGE.rst => USAGE.md} | 5 +- .../static/description/index.html | 32 +++++++----- 11 files changed, 75 insertions(+), 52 deletions(-) create mode 100644 web_widget_product_label_section_and_note/pyproject.toml create mode 100644 web_widget_product_label_section_and_note/readme/CONFIGURE.md delete mode 100644 web_widget_product_label_section_and_note/readme/CONFIGURE.rst create mode 100644 web_widget_product_label_section_and_note/readme/CONTRIBUTORS.md delete mode 100644 web_widget_product_label_section_and_note/readme/CONTRIBUTORS.rst rename web_widget_product_label_section_and_note/readme/{DESCRIPTION.rst => DESCRIPTION.md} (58%) create mode 100644 web_widget_product_label_section_and_note/readme/ROADMAP.md delete mode 100644 web_widget_product_label_section_and_note/readme/ROADMAP.rst rename web_widget_product_label_section_and_note/readme/{USAGE.rst => USAGE.md} (58%) diff --git a/web_widget_product_label_section_and_note/README.rst b/web_widget_product_label_section_and_note/README.rst index fdd8faa4d..6403fbd29 100644 --- a/web_widget_product_label_section_and_note/README.rst +++ b/web_widget_product_label_section_and_note/README.rst @@ -17,18 +17,19 @@ Web widget product label section and note :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_product_label_section_and_note + :target: https://github.com/OCA/web/tree/17.0/web_widget_product_label_section_and_note :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_product_label_section_and_note + :target: https://translation.odoo-community.org/projects/web-17-0/web-17-0-web_widget_product_label_section_and_note :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 module unifies the product and name into a single column, making it more user-friendly and space-saving. +This module unifies the product and name into a single column, making it +more user-friendly and space-saving. **Table of contents** @@ -39,27 +40,32 @@ Configuration ============= To extend this functionality to other modules (for example, Purchase), -in a new module, it is necessary to create an inherited view to change the widget for these fields: +in a new module, it is necessary to create an inherited view to change +the widget for these fields: -- `one2many` field with `widget="product_label_section_and_note_field_o2m"`. - -- `product_id` or product_tmpl_id field with `widget="product_label_section_and_note_field"`. - -- `name` field with `widget="section_and_note_text"`. +- one2many field with widget="product_label_section_and_note_field_o2m". +- product_id or producttmpl_id field with + widget="product_label_section_and_note_field". +- name field with widget="section_and_note_text". Usage ===== - Go to the **Invoicing > Customers > Invoices** and add a new line. - The product label must be displayed just after the product name. -- If the product does not have a description, a button must be displayed to add one. +- If the product does not have a description, a button must be displayed + to add one. Known issues / Roadmap ====================== -- Add compatibility with `sale_product_configurator` module -- Add compatibility with `purchase_product_matrix` module -- When this module is installed, the PDF report will always display the column `name` as a combination of the `product code`, `product name`, and `description`. This behavior may differ from the expected behavior, where only the column `name` is displayed and can be customized independently. +- Add compatibility with sale_product_configurator module +- Add compatibility with purchase_product_matrix module +- When this module is installed, the PDF report will always display the + column name as a combination of the product code, product name, and + description. This behavior may differ from the expected behavior, + where only the column name is displayed and can be customized + independently. Bug Tracker =========== @@ -67,7 +73,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. @@ -75,21 +81,21 @@ Credits ======= Authors -~~~~~~~ +------- * Tecnativa * Odoo S.A. Contributors -~~~~~~~~~~~~ +------------ -* `Tecnativa `_: +- `Tecnativa `__: - * Pedro M. Baeza - * Carlos Lopez + - Pedro M. Baeza + - Carlos Lopez Maintainers -~~~~~~~~~~~ +----------- This module is maintained by the OCA. @@ -101,6 +107,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_product_label_section_and_note/pyproject.toml b/web_widget_product_label_section_and_note/pyproject.toml new file mode 100644 index 000000000..4231d0ccc --- /dev/null +++ b/web_widget_product_label_section_and_note/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/web_widget_product_label_section_and_note/readme/CONFIGURE.md b/web_widget_product_label_section_and_note/readme/CONFIGURE.md new file mode 100644 index 000000000..9e8afb050 --- /dev/null +++ b/web_widget_product_label_section_and_note/readme/CONFIGURE.md @@ -0,0 +1,8 @@ +To extend this functionality to other modules (for example, Purchase), +in a new module, it is necessary to create an inherited view to change +the widget for these fields: + +- one2many field with widget="product_label_section_and_note_field_o2m". +- product_id or producttmpl_id field with + widget="product_label_section_and_note_field". +- name field with widget="section_and_note_text". diff --git a/web_widget_product_label_section_and_note/readme/CONFIGURE.rst b/web_widget_product_label_section_and_note/readme/CONFIGURE.rst deleted file mode 100644 index 9dec51ac9..000000000 --- a/web_widget_product_label_section_and_note/readme/CONFIGURE.rst +++ /dev/null @@ -1,8 +0,0 @@ -To extend this functionality to other modules (for example, Purchase), -in a new module, it is necessary to create an inherited view to change the widget for these fields: - -- `one2many` field with `widget="product_label_section_and_note_field_o2m"`. - -- `product_id` or product_tmpl_id field with `widget="product_label_section_and_note_field"`. - -- `name` field with `widget="section_and_note_text"`. diff --git a/web_widget_product_label_section_and_note/readme/CONTRIBUTORS.md b/web_widget_product_label_section_and_note/readme/CONTRIBUTORS.md new file mode 100644 index 000000000..bc7e72181 --- /dev/null +++ b/web_widget_product_label_section_and_note/readme/CONTRIBUTORS.md @@ -0,0 +1,4 @@ +- [Tecnativa](https://www.tecnativa.com): + + > - Pedro M. Baeza + > - Carlos Lopez diff --git a/web_widget_product_label_section_and_note/readme/CONTRIBUTORS.rst b/web_widget_product_label_section_and_note/readme/CONTRIBUTORS.rst deleted file mode 100644 index 2ab4a0d07..000000000 --- a/web_widget_product_label_section_and_note/readme/CONTRIBUTORS.rst +++ /dev/null @@ -1,4 +0,0 @@ -* `Tecnativa `_: - - * Pedro M. Baeza - * Carlos Lopez \ No newline at end of file diff --git a/web_widget_product_label_section_and_note/readme/DESCRIPTION.rst b/web_widget_product_label_section_and_note/readme/DESCRIPTION.md similarity index 58% rename from web_widget_product_label_section_and_note/readme/DESCRIPTION.rst rename to web_widget_product_label_section_and_note/readme/DESCRIPTION.md index 08fd5b2bd..67399f80c 100644 --- a/web_widget_product_label_section_and_note/readme/DESCRIPTION.rst +++ b/web_widget_product_label_section_and_note/readme/DESCRIPTION.md @@ -1 +1,2 @@ -This module unifies the product and name into a single column, making it more user-friendly and space-saving. \ No newline at end of file +This module unifies the product and name into a single column, making it +more user-friendly and space-saving. diff --git a/web_widget_product_label_section_and_note/readme/ROADMAP.md b/web_widget_product_label_section_and_note/readme/ROADMAP.md new file mode 100644 index 000000000..43fa15549 --- /dev/null +++ b/web_widget_product_label_section_and_note/readme/ROADMAP.md @@ -0,0 +1,7 @@ +- Add compatibility with sale_product_configurator module +- Add compatibility with purchase_product_matrix module +- When this module is installed, the PDF report will always display the + column name as a combination of the product code, product name, and + description. This behavior may differ from the expected behavior, + where only the column name is displayed and can be customized + independently. diff --git a/web_widget_product_label_section_and_note/readme/ROADMAP.rst b/web_widget_product_label_section_and_note/readme/ROADMAP.rst deleted file mode 100644 index 8e3c1f4bf..000000000 --- a/web_widget_product_label_section_and_note/readme/ROADMAP.rst +++ /dev/null @@ -1,3 +0,0 @@ -- Add compatibility with `sale_product_configurator` module -- Add compatibility with `purchase_product_matrix` module -- When this module is installed, the PDF report will always display the column `name` as a combination of the `product code`, `product name`, and `description`. This behavior may differ from the expected behavior, where only the column `name` is displayed and can be customized independently. \ No newline at end of file diff --git a/web_widget_product_label_section_and_note/readme/USAGE.rst b/web_widget_product_label_section_and_note/readme/USAGE.md similarity index 58% rename from web_widget_product_label_section_and_note/readme/USAGE.rst rename to web_widget_product_label_section_and_note/readme/USAGE.md index a70feee9e..fe6a6b371 100644 --- a/web_widget_product_label_section_and_note/readme/USAGE.rst +++ b/web_widget_product_label_section_and_note/readme/USAGE.md @@ -1,3 +1,4 @@ -- Go to the **Invoicing > Customers > Invoices** and add a new line. +- Go to the **Invoicing \> Customers \> Invoices** and add a new line. - The product label must be displayed just after the product name. -- If the product does not have a description, a button must be displayed to add one. \ No newline at end of file +- If the product does not have a description, a button must be displayed + to add one. diff --git a/web_widget_product_label_section_and_note/static/description/index.html b/web_widget_product_label_section_and_note/static/description/index.html index a21e0cdbc..f2a260aa4 100644 --- a/web_widget_product_label_section_and_note/static/description/index.html +++ b/web_widget_product_label_section_and_note/static/description/index.html @@ -369,8 +369,9 @@ ul.auto-toc { !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! source digest: sha256:db9a30e28410d3ef4ad626f850f766eedb3845976f424d1bbae3350674397d0d !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

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

-

This module unifies the product and name into a single column, making it more user-friendly and space-saving.

+

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

+

This module unifies the product and name into a single column, making it +more user-friendly and space-saving.

Table of contents

    @@ -389,11 +390,13 @@ ul.auto-toc {

    Configuration

    To extend this functionality to other modules (for example, Purchase), -in a new module, it is necessary to create an inherited view to change the widget for these fields:

    +in a new module, it is necessary to create an inherited view to change +the widget for these fields:

      -
    • one2many field with widget=”product_label_section_and_note_field_o2m”.
    • -
    • product_id or product_tmpl_id field with widget=”product_label_section_and_note_field”.
    • -
    • name field with widget=”section_and_note_text”.
    • +
    • one2many field with widget=”product_label_section_and_note_field_o2m”.
    • +
    • product_id or producttmpl_id field with +widget=”product_label_section_and_note_field”.
    • +
    • name field with widget=”section_and_note_text”.
    @@ -401,15 +404,20 @@ in a new module, it is necessary to create an inherited view to change the widge
    • Go to the Invoicing > Customers > Invoices and add a new line.
    • The product label must be displayed just after the product name.
    • -
    • If the product does not have a description, a button must be displayed to add one.
    • +
    • If the product does not have a description, a button must be displayed +to add one.

    Known issues / Roadmap

      -
    • Add compatibility with sale_product_configurator module
    • -
    • Add compatibility with purchase_product_matrix module
    • -
    • When this module is installed, the PDF report will always display the column name as a combination of the product code, product name, and description. This behavior may differ from the expected behavior, where only the column name is displayed and can be customized independently.
    • +
    • Add compatibility with sale_product_configurator module
    • +
    • Add compatibility with purchase_product_matrix module
    • +
    • When this module is installed, the PDF report will always display the +column name as a combination of the product code, product name, and +description. This behavior may differ from the expected behavior, +where only the column name is displayed and can be customized +independently.
    @@ -417,7 +425,7 @@ in a new module, it is necessary to create an inherited view to change the widge

    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.

    @@ -451,7 +459,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.