From 5c7efff44707525941a3429611267930fcb57a6c Mon Sep 17 00:00:00 2001 From: Franco Leyes Date: Wed, 19 Jun 2024 09:15:41 -0300 Subject: [PATCH] [IMP] website_sale_product_attribute_value_filter_existing: pre-commit auto fixes --- .../README.rst | 38 ++++++++++--------- .../controllers/main.py | 4 +- .../pyproject.toml | 3 ++ .../readme/CONTRIBUTORS.md | 7 ++++ .../readme/CONTRIBUTORS.rst | 8 ---- .../readme/{CREDITS.rst => CREDITS.md} | 3 +- .../readme/DESCRIPTION.md | 2 + .../readme/DESCRIPTION.rst | 2 - .../static/description/index.html | 30 +++++++-------- 9 files changed, 51 insertions(+), 46 deletions(-) create mode 100644 website_sale_product_attribute_value_filter_existing/pyproject.toml create mode 100644 website_sale_product_attribute_value_filter_existing/readme/CONTRIBUTORS.md delete mode 100644 website_sale_product_attribute_value_filter_existing/readme/CONTRIBUTORS.rst rename website_sale_product_attribute_value_filter_existing/readme/{CREDITS.rst => CREDITS.md} (73%) create mode 100644 website_sale_product_attribute_value_filter_existing/readme/DESCRIPTION.md delete mode 100644 website_sale_product_attribute_value_filter_existing/readme/DESCRIPTION.rst diff --git a/website_sale_product_attribute_value_filter_existing/README.rst b/website_sale_product_attribute_value_filter_existing/README.rst index 0f2f5b6c49..6bb1066c5c 100644 --- a/website_sale_product_attribute_value_filter_existing/README.rst +++ b/website_sale_product_attribute_value_filter_existing/README.rst @@ -17,19 +17,19 @@ Website Sale Attribute Value Existing :target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html :alt: License: LGPL-3 .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fe--commerce-lightgray.png?logo=github - :target: https://github.com/OCA/e-commerce/tree/16.0/website_sale_product_attribute_value_filter_existing + :target: https://github.com/OCA/e-commerce/tree/17.0/website_sale_product_attribute_value_filter_existing :alt: OCA/e-commerce .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/e-commerce-16-0/e-commerce-16-0-website_sale_product_attribute_value_filter_existing + :target: https://translation.odoo-community.org/projects/e-commerce-17-0/e-commerce-17-0-website_sale_product_attribute_value_filter_existing :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/e-commerce&target_branch=16.0 + :target: https://runboat.odoo-community.org/builds?repo=OCA/e-commerce&target_branch=17.0 :alt: Try me on Runboat |badge1| |badge2| |badge3| |badge4| |badge5| -This module extends the functionality of website sale module to allow hide -product attributes values which exist but not used on any variants. +This module extends the functionality of website sale module to allow +hide product attributes values which exist but not used on any variants. **Table of contents** @@ -42,7 +42,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. @@ -50,29 +50,31 @@ Credits ======= Authors -~~~~~~~ +------- * Tecnativa Contributors -~~~~~~~~~~~~ +------------ -* `Tecnativa `_: +- `Tecnativa `__: - * Victor M.M. Torres - * Sergio Teruel - * Carlos Roca + - Victor M.M. Torres + - Sergio Teruel + - Carlos Roca -* `Trobz `_: - * Hoang Diep +- `Trobz `__: + + - Hoang Diep Other credits -~~~~~~~~~~~~~ +------------- -The migration of this module from 15.0 to 16.0 was financially supported by Camptocamp +The migration of this module from 15.0 to 16.0 was financially supported +by Camptocamp Maintainers -~~~~~~~~~~~ +----------- This module is maintained by the OCA. @@ -84,6 +86,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/e-commerce `_ project on GitHub. +This module is part of the `OCA/e-commerce `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/website_sale_product_attribute_value_filter_existing/controllers/main.py b/website_sale_product_attribute_value_filter_existing/controllers/main.py index 4a2d65cd64..8b9ae51821 100644 --- a/website_sale_product_attribute_value_filter_existing/controllers/main.py +++ b/website_sale_product_attribute_value_filter_existing/controllers/main.py @@ -17,7 +17,7 @@ def shop( min_price=0.0, max_price=0.0, ppg=False, - **post + **post, ): res = super().shop( page=page, @@ -26,7 +26,7 @@ def shop( min_price=min_price, max_price=max_price, ppg=ppg, - **post + **post, ) # getting existing templates by "search_product" in qcontext diff --git a/website_sale_product_attribute_value_filter_existing/pyproject.toml b/website_sale_product_attribute_value_filter_existing/pyproject.toml new file mode 100644 index 0000000000..4231d0cccb --- /dev/null +++ b/website_sale_product_attribute_value_filter_existing/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/website_sale_product_attribute_value_filter_existing/readme/CONTRIBUTORS.md b/website_sale_product_attribute_value_filter_existing/readme/CONTRIBUTORS.md new file mode 100644 index 0000000000..85fb8190f4 --- /dev/null +++ b/website_sale_product_attribute_value_filter_existing/readme/CONTRIBUTORS.md @@ -0,0 +1,7 @@ +- [Tecnativa](https://www.tecnativa.com): + - Victor M.M. Torres + - Sergio Teruel + - Carlos Roca + +- [Trobz](https://trobz.com): + - Hoang Diep \<\> diff --git a/website_sale_product_attribute_value_filter_existing/readme/CONTRIBUTORS.rst b/website_sale_product_attribute_value_filter_existing/readme/CONTRIBUTORS.rst deleted file mode 100644 index 2b6adba0d5..0000000000 --- a/website_sale_product_attribute_value_filter_existing/readme/CONTRIBUTORS.rst +++ /dev/null @@ -1,8 +0,0 @@ -* `Tecnativa `_: - - * Victor M.M. Torres - * Sergio Teruel - * Carlos Roca - -* `Trobz `_: - * Hoang Diep diff --git a/website_sale_product_attribute_value_filter_existing/readme/CREDITS.rst b/website_sale_product_attribute_value_filter_existing/readme/CREDITS.md similarity index 73% rename from website_sale_product_attribute_value_filter_existing/readme/CREDITS.rst rename to website_sale_product_attribute_value_filter_existing/readme/CREDITS.md index 70bc307ad0..291e14c81e 100644 --- a/website_sale_product_attribute_value_filter_existing/readme/CREDITS.rst +++ b/website_sale_product_attribute_value_filter_existing/readme/CREDITS.md @@ -1 +1,2 @@ -The migration of this module from 15.0 to 16.0 was financially supported by Camptocamp +The migration of this module from 15.0 to 16.0 was financially supported +by Camptocamp diff --git a/website_sale_product_attribute_value_filter_existing/readme/DESCRIPTION.md b/website_sale_product_attribute_value_filter_existing/readme/DESCRIPTION.md new file mode 100644 index 0000000000..f9f440b191 --- /dev/null +++ b/website_sale_product_attribute_value_filter_existing/readme/DESCRIPTION.md @@ -0,0 +1,2 @@ +This module extends the functionality of website sale module to allow +hide product attributes values which exist but not used on any variants. diff --git a/website_sale_product_attribute_value_filter_existing/readme/DESCRIPTION.rst b/website_sale_product_attribute_value_filter_existing/readme/DESCRIPTION.rst deleted file mode 100644 index 21a2d80b14..0000000000 --- a/website_sale_product_attribute_value_filter_existing/readme/DESCRIPTION.rst +++ /dev/null @@ -1,2 +0,0 @@ -This module extends the functionality of website sale module to allow hide -product attributes values which exist but not used on any variants. diff --git a/website_sale_product_attribute_value_filter_existing/static/description/index.html b/website_sale_product_attribute_value_filter_existing/static/description/index.html index 571bced2ab..6345c37c05 100644 --- a/website_sale_product_attribute_value_filter_existing/static/description/index.html +++ b/website_sale_product_attribute_value_filter_existing/static/description/index.html @@ -8,10 +8,11 @@ /* :Author: David Goodger (goodger@python.org) -:Id: $Id: html4css1.css 8954 2022-01-20 10:10:25Z milde $ +:Id: $Id: html4css1.css 9511 2024-01-13 09:50:07Z milde $ :Copyright: This stylesheet has been placed in the public domain. Default cascading style sheet for the HTML output of Docutils. +Despite the name, some widely supported CSS2 features are used. See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to customize this style sheet. @@ -274,7 +275,7 @@ margin-left: 2em ; margin-right: 2em } -pre.code .ln { color: grey; } /* line numbers */ +pre.code .ln { color: gray; } /* line numbers */ pre.code, code { background-color: #eeeeee } pre.code .comment, code .comment { color: #5C6576 } pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold } @@ -300,7 +301,7 @@ span.pre { white-space: pre } -span.problematic { +span.problematic, pre.problematic { color: red } span.section-subtitle { @@ -368,9 +369,9 @@

Website Sale Attribute Value Existing

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! source digest: sha256:d2f3a4e443aa4953a9febb740270edbefb7a2637971bc09c6b5f09adbfa7488e !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

Production/Stable License: LGPL-3 OCA/e-commerce Translate me on Weblate Try me on Runboat

-

This module extends the functionality of website sale module to allow hide -product attributes values which exist but not used on any variants.

+

Production/Stable License: LGPL-3 OCA/e-commerce Translate me on Weblate Try me on Runboat

+

This module extends the functionality of website sale module to allow +hide product attributes values which exist but not used on any variants.

Table of contents

    @@ -389,7 +390,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.

@@ -409,28 +410,27 @@

Contributors

  • Carlos Roca
  • -
  • -
    Trobz:
    -
    -
  • Other credits

    -

    The migration of this module from 15.0 to 16.0 was financially supported by Camptocamp

    +

    The migration of this module from 15.0 to 16.0 was financially supported +by Camptocamp

    Maintainers

    This module is maintained by the OCA.

    -Odoo Community Association + +Odoo Community Association +

    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/e-commerce project on GitHub.

    +

    This module is part of the OCA/e-commerce project on GitHub.

    You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.