From b3a536e17c610bb51117986c7cc6f6ffd4a197d9 Mon Sep 17 00:00:00 2001 From: Martha Rondon Date: Wed, 28 Feb 2024 16:16:04 -0500 Subject: [PATCH] [IMP] partner_industry_secondary: pre-commit auto fixes --- partner_industry_secondary/README.rst | 47 ++++++++++--------- .../models/res_partner_industry.py | 2 +- partner_industry_secondary/pyproject.toml | 3 ++ .../readme/CONFIGURE.md | 9 ++++ .../readme/CONFIGURE.rst | 8 ---- .../readme/CONTRIBUTORS.md | 9 ++++ .../readme/CONTRIBUTORS.rst | 9 ---- .../{DESCRIPTION.rst => DESCRIPTION.md} | 0 .../readme/{USAGE.rst => USAGE.md} | 2 +- .../static/description/index.html | 14 +++--- .../tests/test_res_partner_industry.py | 2 +- 11 files changed, 56 insertions(+), 49 deletions(-) create mode 100644 partner_industry_secondary/pyproject.toml create mode 100644 partner_industry_secondary/readme/CONFIGURE.md delete mode 100644 partner_industry_secondary/readme/CONFIGURE.rst create mode 100644 partner_industry_secondary/readme/CONTRIBUTORS.md delete mode 100644 partner_industry_secondary/readme/CONTRIBUTORS.rst rename partner_industry_secondary/readme/{DESCRIPTION.rst => DESCRIPTION.md} (100%) rename partner_industry_secondary/readme/{USAGE.rst => USAGE.md} (54%) diff --git a/partner_industry_secondary/README.rst b/partner_industry_secondary/README.rst index 9eb0612b4977..c4fb3d89078e 100644 --- a/partner_industry_secondary/README.rst +++ b/partner_industry_secondary/README.rst @@ -17,13 +17,13 @@ Partner Industry Secondary :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html :alt: License: AGPL-3 .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fpartner--contact-lightgray.png?logo=github - :target: https://github.com/OCA/partner-contact/tree/16.0/partner_industry_secondary + :target: https://github.com/OCA/partner-contact/tree/17.0/partner_industry_secondary :alt: OCA/partner-contact .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/partner-contact-16-0/partner-contact-16-0-partner_industry_secondary + :target: https://translation.odoo-community.org/projects/partner-contact-17-0/partner-contact-17-0-partner_industry_secondary :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/partner-contact&target_branch=16.0 + :target: https://runboat.odoo-community.org/builds?repo=OCA/partner-contact&target_branch=17.0 :alt: Try me on Runboat |badge1| |badge2| |badge3| |badge4| |badge5| @@ -40,19 +40,20 @@ Configuration To manage industries, you need to: -* Go to *Contacts > Configuration > Industries*. +- Go to *Contacts > Configuration > Industries*. -By default only companies have industries. To activate industries in individuals also, -you need to activate the following setting: +By default only companies have industries. To activate industries in +individuals also, you need to activate the following setting: -* Go to *Settings > General Settings > Partner Industries > Industry in contacts > Use industry for individuals* +- Go to *Settings > General Settings > Partner Industries > Industry in + contacts > Use industry for individuals* Usage ===== To use this module, you need to: -* Go to any partner's form. +- Go to any partner's form. Bug Tracker =========== @@ -60,7 +61,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. @@ -68,25 +69,25 @@ Credits ======= Authors -~~~~~~~ +------- * Tecnativa Contributors -~~~~~~~~~~~~ - -* Rafael Blasco -* Antonio Espinosa -* Javier Iniesta -* Vicent Cubells -* Pedro M. Baeza -* Luis M. Ontalba -* Jordi Ballester Alomar -* Miquel Raïch -* Cristina Martin R. +------------ + +- Rafael Blasco +- Antonio Espinosa +- Javier Iniesta +- Vicent Cubells +- Pedro M. Baeza +- Luis M. Ontalba +- Jordi Ballester Alomar +- Miquel Raïch +- Cristina Martin R. Maintainers -~~~~~~~~~~~ +----------- This module is maintained by the OCA. @@ -98,6 +99,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/partner-contact `_ project on GitHub. +This module is part of the `OCA/partner-contact `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/partner_industry_secondary/models/res_partner_industry.py b/partner_industry_secondary/models/res_partner_industry.py index 0aeefe448fb5..fe05971af803 100644 --- a/partner_industry_secondary/models/res_partner_industry.py +++ b/partner_industry_secondary/models/res_partner_industry.py @@ -50,4 +50,4 @@ def copy(self, default=None): default = default or {} if "name" not in default or default["name"] == self.name: default["name"] = self.name + " 2" - return super(ResPartnerIndustry, self).copy(default=default) + return super().copy(default=default) diff --git a/partner_industry_secondary/pyproject.toml b/partner_industry_secondary/pyproject.toml new file mode 100644 index 000000000000..4231d0cccb3d --- /dev/null +++ b/partner_industry_secondary/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/partner_industry_secondary/readme/CONFIGURE.md b/partner_industry_secondary/readme/CONFIGURE.md new file mode 100644 index 000000000000..60d59a7dcc96 --- /dev/null +++ b/partner_industry_secondary/readme/CONFIGURE.md @@ -0,0 +1,9 @@ +To manage industries, you need to: + +- Go to *Contacts \> Configuration \> Industries*. + +By default only companies have industries. To activate industries in +individuals also, you need to activate the following setting: + +- Go to *Settings \> General Settings \> Partner Industries \> Industry + in contacts \> Use industry for individuals* diff --git a/partner_industry_secondary/readme/CONFIGURE.rst b/partner_industry_secondary/readme/CONFIGURE.rst deleted file mode 100644 index 4d8119cd50eb..000000000000 --- a/partner_industry_secondary/readme/CONFIGURE.rst +++ /dev/null @@ -1,8 +0,0 @@ -To manage industries, you need to: - -* Go to *Contacts > Configuration > Industries*. - -By default only companies have industries. To activate industries in individuals also, -you need to activate the following setting: - -* Go to *Settings > General Settings > Partner Industries > Industry in contacts > Use industry for individuals* diff --git a/partner_industry_secondary/readme/CONTRIBUTORS.md b/partner_industry_secondary/readme/CONTRIBUTORS.md new file mode 100644 index 000000000000..c59836cb9615 --- /dev/null +++ b/partner_industry_secondary/readme/CONTRIBUTORS.md @@ -0,0 +1,9 @@ +- Rafael Blasco \<\> +- Antonio Espinosa \<\> +- Javier Iniesta \<\> +- Vicent Cubells \<\> +- Pedro M. Baeza \<\> +- Luis M. Ontalba \<\> +- Jordi Ballester Alomar \<\> +- Miquel Raïch \<\> +- Cristina Martin R. diff --git a/partner_industry_secondary/readme/CONTRIBUTORS.rst b/partner_industry_secondary/readme/CONTRIBUTORS.rst deleted file mode 100644 index b9e3b9b763da..000000000000 --- a/partner_industry_secondary/readme/CONTRIBUTORS.rst +++ /dev/null @@ -1,9 +0,0 @@ -* Rafael Blasco -* Antonio Espinosa -* Javier Iniesta -* Vicent Cubells -* Pedro M. Baeza -* Luis M. Ontalba -* Jordi Ballester Alomar -* Miquel Raïch -* Cristina Martin R. diff --git a/partner_industry_secondary/readme/DESCRIPTION.rst b/partner_industry_secondary/readme/DESCRIPTION.md similarity index 100% rename from partner_industry_secondary/readme/DESCRIPTION.rst rename to partner_industry_secondary/readme/DESCRIPTION.md diff --git a/partner_industry_secondary/readme/USAGE.rst b/partner_industry_secondary/readme/USAGE.md similarity index 54% rename from partner_industry_secondary/readme/USAGE.rst rename to partner_industry_secondary/readme/USAGE.md index 895ed34b0e36..8a1ff01108f6 100644 --- a/partner_industry_secondary/readme/USAGE.rst +++ b/partner_industry_secondary/readme/USAGE.md @@ -1,3 +1,3 @@ To use this module, you need to: -* Go to any partner's form. +- Go to any partner's form. diff --git a/partner_industry_secondary/static/description/index.html b/partner_industry_secondary/static/description/index.html index 9eea72ad331e..5515520a07c8 100644 --- a/partner_industry_secondary/static/description/index.html +++ b/partner_industry_secondary/static/description/index.html @@ -1,3 +1,4 @@ + @@ -368,7 +369,7 @@

Partner Industry Secondary

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! source digest: sha256:239d219b7b25c790698cd580d9091e16c51cd2ba4e638677df6f35827168b0d6 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

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

+

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

This module adds secondary industries for partners.

Table of contents

@@ -390,10 +391,11 @@

Configuration

  • Go to Contacts > Configuration > Industries.
-

By default only companies have industries. To activate industries in individuals also, -you need to activate the following setting:

+

By default only companies have industries. To activate industries in +individuals also, you need to activate the following setting:

    -
  • Go to Settings > General Settings > Partner Industries > Industry in contacts > Use industry for individuals
  • +
  • Go to Settings > General Settings > Partner Industries > Industry in +contacts > Use industry for individuals
@@ -408,7 +410,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.

@@ -440,7 +442,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/partner-contact project on GitHub.

+

This module is part of the OCA/partner-contact project on GitHub.

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

diff --git a/partner_industry_secondary/tests/test_res_partner_industry.py b/partner_industry_secondary/tests/test_res_partner_industry.py index 6d21713dd414..0068643bdba0 100644 --- a/partner_industry_secondary/tests/test_res_partner_industry.py +++ b/partner_industry_secondary/tests/test_res_partner_industry.py @@ -10,7 +10,7 @@ class TestResPartnerIndustry(common.TransactionCase): @classmethod def setUpClass(cls): - super(TestResPartnerIndustry, cls).setUpClass() + super().setUpClass() cls.industry_model = cls.env["res.partner.industry"] cls.industry_main = cls.industry_model.create({"name": "Test"}) cls.industry_child = cls.industry_model.create(