diff --git a/product_variant_name/README.rst b/product_variant_name/README.rst index 1395b638f..6cbe59cb9 100644 --- a/product_variant_name/README.rst +++ b/product_variant_name/README.rst @@ -7,7 +7,7 @@ Product Variant Name !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:01807873c437c2b9ccb9455f775c849a9bd28768663da312b0acc32af69a5f2f + !! source digest: sha256:e1bdd993489f81325d1fdc9946a8448999156330577ea05b690c4aca8491d321 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png @@ -17,19 +17,19 @@ Product Variant Name :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--variant-lightgray.png?logo=github - :target: https://github.com/OCA/product-variant/tree/16.0/product_variant_name + :target: https://github.com/OCA/product-variant/tree/17.0/product_variant_name :alt: OCA/product-variant .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/product-variant-16-0/product-variant-16-0-product_variant_name + :target: https://translation.odoo-community.org/projects/product-variant-17-0/product-variant-17-0-product_variant_name :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-variant&target_branch=16.0 + :target: https://runboat.odoo-community.org/builds?repo=OCA/product-variant&target_branch=17.0 :alt: Try me on Runboat |badge1| |badge2| |badge3| |badge4| |badge5| -This module allows having different product variant names than the name of -their template. +This module allows having different product variant names than the name +of their template. **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,17 +50,20 @@ Credits ======= Authors -~~~~~~~ +------- * ForgeFlow Contributors -~~~~~~~~~~~~ +------------ -* Jordi Masvidal +- Jordi Masvidal +- `Binhex Systems Solutions `__: + + - Deriman Alonso Maintainers -~~~~~~~~~~~ +----------- This module is maintained by the OCA. @@ -72,6 +75,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-variant `_ project on GitHub. +This module is part of the `OCA/product-variant `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/product_variant_name/__manifest__.py b/product_variant_name/__manifest__.py index b631877d7..7d2b1f23a 100644 --- a/product_variant_name/__manifest__.py +++ b/product_variant_name/__manifest__.py @@ -3,7 +3,7 @@ { "name": "Product Variant Name", - "version": "16.0.1.0.0", + "version": "17.0.1.0.0", "category": "Product", "author": "ForgeFlow, Odoo Community Association (OCA)", "website": "https://github.com/OCA/product-variant", diff --git a/product_variant_name/init_hook.py b/product_variant_name/init_hook.py index a8119f3aa..788f753f7 100644 --- a/product_variant_name/init_hook.py +++ b/product_variant_name/init_hook.py @@ -6,10 +6,10 @@ logger = logging.getLogger(__name__) -def post_init_hook(cr, registry): +def post_init_hook(env): """Init product variant name with product template name""" logger.info("Setting product variant name with product template name") - cr.execute( + env.cr.execute( """ UPDATE product_product pp SET name = pt.name diff --git a/product_variant_name/pyproject.toml b/product_variant_name/pyproject.toml new file mode 100644 index 000000000..4231d0ccc --- /dev/null +++ b/product_variant_name/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/product_variant_name/readme/CONTRIBUTORS.md b/product_variant_name/readme/CONTRIBUTORS.md new file mode 100644 index 000000000..c5593077d --- /dev/null +++ b/product_variant_name/readme/CONTRIBUTORS.md @@ -0,0 +1,3 @@ +- Jordi Masvidal \<\> +- [Binhex Systems Solutions](https://binhex.cloud/): + - Deriman Alonso \<\> diff --git a/product_variant_name/readme/CONTRIBUTORS.rst b/product_variant_name/readme/CONTRIBUTORS.rst deleted file mode 100644 index e4263e418..000000000 --- a/product_variant_name/readme/CONTRIBUTORS.rst +++ /dev/null @@ -1 +0,0 @@ -* Jordi Masvidal diff --git a/product_variant_name/readme/DESCRIPTION.rst b/product_variant_name/readme/DESCRIPTION.md similarity index 70% rename from product_variant_name/readme/DESCRIPTION.rst rename to product_variant_name/readme/DESCRIPTION.md index a32f4e5fc..5b8421ca0 100644 --- a/product_variant_name/readme/DESCRIPTION.rst +++ b/product_variant_name/readme/DESCRIPTION.md @@ -1,2 +1,2 @@ -This module allows having different product variant names than the name of -their template. +This module allows having different product variant names than the name +of their template. diff --git a/product_variant_name/static/description/index.html b/product_variant_name/static/description/index.html index 5ce5bf23f..d4b540883 100644 --- a/product_variant_name/static/description/index.html +++ b/product_variant_name/static/description/index.html @@ -1,4 +1,3 @@ - @@ -367,11 +366,11 @@

Product Variant Name

!! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -!! source digest: sha256:01807873c437c2b9ccb9455f775c849a9bd28768663da312b0acc32af69a5f2f +!! source digest: sha256:e1bdd993489f81325d1fdc9946a8448999156330577ea05b690c4aca8491d321 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

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

-

This module allows having different product variant names than the name of -their template.

+

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

+

This module allows having different product variant names than the name +of their template.

Table of contents

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

@@ -404,6 +403,10 @@

Authors

Contributors

@@ -413,7 +416,7 @@

Maintainers

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-variant project on GitHub.

+

This module is part of the OCA/product-variant project on GitHub.

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

diff --git a/product_variant_name/tests/test_product_variant_name.py b/product_variant_name/tests/test_product_variant_name.py index a65078504..432fe0dab 100644 --- a/product_variant_name/tests/test_product_variant_name.py +++ b/product_variant_name/tests/test_product_variant_name.py @@ -6,7 +6,7 @@ class TestProductVariantName(TransactionCase): def setUp(self): - super(TestProductVariantName, self).setUp() + super().setUp() self.product_tmpl_model = self.env["product.template"] self.product_model = self.env["product.product"]