Skip to content

Commit

Permalink
[IMP] product_assortment: pre-commit auto fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Deriman-Alonso committed Apr 18, 2024
1 parent 6b9b46c commit 5ad7f75
Show file tree
Hide file tree
Showing 13 changed files with 79 additions and 80 deletions.
62 changes: 31 additions & 31 deletions product_assortment/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,23 +17,23 @@ Product Assortment
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fproduct--attribute-lightgray.png?logo=github
:target: https://github.com/OCA/product-attribute/tree/16.0/product_assortment
:target: https://github.com/OCA/product-attribute/tree/17.0/product_assortment
:alt: OCA/product-attribute
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/product-attribute-16-0/product-attribute-16-0-product_assortment
:target: https://translation.odoo-community.org/projects/product-attribute-17-0/product-attribute-17-0-product_assortment
: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/product-attribute&target_branch=16.0
:target: https://runboat.odoo-community.org/builds?repo=OCA/product-attribute&target_branch=17.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

This addon intends to manage product assortment. In Odoo you can only define
some filters defined by a domain but it can be sometimes really complicated.
With this addon you will be able to define a domain but also add some
products to include or to exclude through a allowed list and a restricted list.
This is done by overriding ir.capability but without influencing its standard
behaviour.
This addon intends to manage product assortment. In Odoo you can only
define some filters defined by a domain but it can be sometimes really
complicated. With this addon you will be able to define a domain but
also add some products to include or to exclude through a allowed list
and a restricted list. This is done by overriding ir.capability but
without influencing its standard behaviour.

**Table of contents**

Expand All @@ -43,66 +43,66 @@ behaviour.
Usage
=====


To use this module, you need to:

#. Enter the menu through Product Assortment Icon
#. Create a new filter where you can define your domain and add allowed and restricted products
1. Enter the menu through Product Assortment Icon
2. Create a new filter where you can define your domain and add allowed
and restricted products

Changelog
=========

10.0.1.0.0 (2018-08-27)
~~~~~~~~~~~~~~~~~~~~~~~
-----------------------

* [10.0][ADD] product_assortment
- [10.0][ADD] product_assortment

12.0.1.0.0 (2019-06-03)
~~~~~~~~~~~~~~~~~~~~~~~
-----------------------

* [12.0][MIG] product_assortment
- [12.0][MIG] product_assortment

14.0.1.0.0 (2019-06-03)
~~~~~~~~~~~~~~~~~~~~~~~
-----------------------

* [14.0][MIG] product_assortment
- [14.0][MIG] product_assortment

16.0.1.0.0 (2022-09-15)
~~~~~~~~~~~~~~~~~~~~~~~
-----------------------

* [16.0][MIG] product_assortment
- [16.0][MIG] product_assortment

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/product-attribute/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 <https://github.com/OCA/product-attribute/issues/new?body=module:%20product_assortment%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
`feedback <https://github.com/OCA/product-attribute/issues/new?body=module:%20product_assortment%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

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

Credits
=======

Authors
~~~~~~~
-------

* ACSONE SA/NV

Contributors
~~~~~~~~~~~~
------------

* Denis Roussel <[email protected]>
* Cédric Pigeon <[email protected]>
* Xavier Bouquiaux <[email protected]>
* `Tecnativa <https://www.tecnativa.com>`_:
- Denis Roussel <[email protected]>
- Cédric Pigeon <[email protected]>
- Xavier Bouquiaux <[email protected]>
- `Tecnativa <https://www.tecnativa.com>`__:

* Carlos Roca
* Sergio Teruel
- Carlos Roca
- Sergio Teruel

Maintainers
~~~~~~~~~~~
-----------

This module is maintained by the OCA.

Expand All @@ -114,6 +114,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/product-attribute <https://github.com/OCA/product-attribute/tree/16.0/product_assortment>`_ project on GitHub.
This module is part of the `OCA/product-attribute <https://github.com/OCA/product-attribute/tree/17.0/product_assortment>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
2 changes: 1 addition & 1 deletion product_assortment/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"name": "Product Assortment",
"summary": """
Adds the ability to manage products assortment""",
"version": "16.0.1.0.2",
"version": "17.0.1.0.0",
"license": "AGPL-3",
"development_status": "Production/Stable",
"author": "ACSONE SA/NV,Odoo Community Association (OCA)",
Expand Down
3 changes: 3 additions & 0 deletions product_assortment/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["whool"]
build-backend = "whool.buildapi"
6 changes: 6 additions & 0 deletions product_assortment/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
- Denis Roussel \<<[email protected]>\>
- Cédric Pigeon \<<[email protected]>\>
- Xavier Bouquiaux \<<[email protected]>\>
- [Tecnativa](https://www.tecnativa.com):
- Carlos Roca
- Sergio Teruel
7 changes: 0 additions & 7 deletions product_assortment/readme/CONTRIBUTORS.rst

This file was deleted.

6 changes: 6 additions & 0 deletions product_assortment/readme/DESCRIPTION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
This addon intends to manage product assortment. In Odoo you can only
define some filters defined by a domain but it can be sometimes really
complicated. With this addon you will be able to define a domain but
also add some products to include or to exclude through a allowed list
and a restricted list. This is done by overriding ir.capability but
without influencing its standard behaviour.
6 changes: 0 additions & 6 deletions product_assortment/readme/DESCRIPTION.rst

This file was deleted.

15 changes: 15 additions & 0 deletions product_assortment/readme/HISTORY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
## 10.0.1.0.0 (2018-08-27)

- \[10.0\]\[ADD\] product_assortment

## 12.0.1.0.0 (2019-06-03)

- \[12.0\]\[MIG\] product_assortment

## 14.0.1.0.0 (2019-06-03)

- \[14.0\]\[MIG\] product_assortment

## 16.0.1.0.0 (2022-09-15)

- \[16.0\]\[MIG\] product_assortment
19 changes: 0 additions & 19 deletions product_assortment/readme/HISTORY.rst

This file was deleted.

5 changes: 5 additions & 0 deletions product_assortment/readme/USAGE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
To use this module, you need to:

1. Enter the menu through Product Assortment Icon
2. Create a new filter where you can define your domain and add allowed
and restricted products
5 changes: 0 additions & 5 deletions product_assortment/readme/USAGE.rst

This file was deleted.

21 changes: 11 additions & 10 deletions product_assortment/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -369,13 +369,13 @@ <h1 class="title">Product Assortment</h1>
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:1b3b469466e20d18f38bc2fc1cf1d0077e9f8f14623ed655765511cb1e0f29bc
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Production/Stable" src="https://img.shields.io/badge/maturity-Production%2FStable-green.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/product-attribute/tree/16.0/product_assortment"><img alt="OCA/product-attribute" src="https://img.shields.io/badge/github-OCA%2Fproduct--attribute-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/product-attribute-16-0/product-attribute-16-0-product_assortment"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/product-attribute&amp;target_branch=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p>This addon intends to manage product assortment. In Odoo you can only define
some filters defined by a domain but it can be sometimes really complicated.
With this addon you will be able to define a domain but also add some
products to include or to exclude through a allowed list and a restricted list.
This is done by overriding ir.capability but without influencing its standard
behaviour.</p>
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Production/Stable" src="https://img.shields.io/badge/maturity-Production%2FStable-green.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/product-attribute/tree/17.0/product_assortment"><img alt="OCA/product-attribute" src="https://img.shields.io/badge/github-OCA%2Fproduct--attribute-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/product-attribute-17-0/product-attribute-17-0-product_assortment"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/product-attribute&amp;target_branch=17.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p>This addon intends to manage product assortment. In Odoo you can only
define some filters defined by a domain but it can be sometimes really
complicated. With this addon you will be able to define a domain but
also add some products to include or to exclude through a allowed list
and a restricted list. This is done by overriding ir.capability but
without influencing its standard behaviour.</p>
<p><strong>Table of contents</strong></p>
<div class="contents local topic" id="contents">
<ul class="simple">
Expand All @@ -401,7 +401,8 @@ <h1><a class="toc-backref" href="#toc-entry-1">Usage</a></h1>
<p>To use this module, you need to:</p>
<ol class="arabic simple">
<li>Enter the menu through Product Assortment Icon</li>
<li>Create a new filter where you can define your domain and add allowed and restricted products</li>
<li>Create a new filter where you can define your domain and add allowed
and restricted products</li>
</ol>
</div>
<div class="section" id="changelog">
Expand Down Expand Up @@ -436,7 +437,7 @@ <h1><a class="toc-backref" href="#toc-entry-7">Bug Tracker</a></h1>
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/product-attribute/issues">GitHub Issues</a>.
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
<a class="reference external" href="https://github.com/OCA/product-attribute/issues/new?body=module:%20product_assortment%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<a class="reference external" href="https://github.com/OCA/product-attribute/issues/new?body=module:%20product_assortment%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<p>Do not contact contributors directly about support or help with technical issues.</p>
</div>
<div class="section" id="credits">
Expand Down Expand Up @@ -467,7 +468,7 @@ <h2><a class="toc-backref" href="#toc-entry-11">Maintainers</a></h2>
<p>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.</p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/product-attribute/tree/16.0/product_assortment">OCA/product-attribute</a> project on GitHub.</p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/product-attribute/tree/17.0/product_assortment">OCA/product-attribute</a> project on GitHub.</p>
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion product_assortment/tests/test_product_assortment.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

class TestProductAssortment(TransactionCase):
def setUp(self):
super(TestProductAssortment, self).setUp()
super().setUp()
self.filter_obj = self.env["ir.filters"]
self.product_obj = self.env["product.product"]
self.assortment = self.filter_obj.create(
Expand Down

0 comments on commit 5ad7f75

Please sign in to comment.