Skip to content

Commit

Permalink
[IMP] partner_industry_secondary: pre-commit auto fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mmrondon authored and Tisho99 committed May 21, 2024
1 parent 9a2fabc commit b3a536e
Show file tree
Hide file tree
Showing 11 changed files with 56 additions and 49 deletions.
47 changes: 24 additions & 23 deletions partner_industry_secondary/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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|
Expand All @@ -40,53 +40,54 @@ 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
===========

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

* Tecnativa

Contributors
~~~~~~~~~~~~

* Rafael Blasco <rafabn@antiun.com>
* Antonio Espinosa <antonioea@antiun.com>
* Javier Iniesta <javieria@antiun.com>
* Vicent Cubells <vicent.cubells@tecnativa.com>
* Pedro M. Baeza <pedro.baeza@tecnativa.com>
* Luis M. Ontalba <luis.martinez@tecnativa.com>
* Jordi Ballester Alomar <jordi.ballester@eficent.com>
* Miquel Raïch <miquel.raich@eficent.com>
* Cristina Martin R.
------------

- Rafael Blasco <rafabn@antiun.com>
- Antonio Espinosa <antonioea@antiun.com>
- Javier Iniesta <javieria@antiun.com>
- Vicent Cubells <vicent.cubells@tecnativa.com>
- Pedro M. Baeza <pedro.baeza@tecnativa.com>
- Luis M. Ontalba <luis.martinez@tecnativa.com>
- Jordi Ballester Alomar <jordi.ballester@eficent.com>
- Miquel Raïch <miquel.raich@eficent.com>
- Cristina Martin R.

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

This module is maintained by the OCA.

Expand All @@ -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 <https://github.com/OCA/partner-contact/tree/16.0/partner_industry_secondary>`_ project on GitHub.
This module is part of the `OCA/partner-contact <https://github.com/OCA/partner-contact/tree/17.0/partner_industry_secondary>`_ 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 partner_industry_secondary/models/res_partner_industry.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
3 changes: 3 additions & 0 deletions partner_industry_secondary/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["whool"]
build-backend = "whool.buildapi"
9 changes: 9 additions & 0 deletions partner_industry_secondary/readme/CONFIGURE.md
Original file line number Diff line number Diff line change
@@ -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*
8 changes: 0 additions & 8 deletions partner_industry_secondary/readme/CONFIGURE.rst

This file was deleted.

9 changes: 9 additions & 0 deletions partner_industry_secondary/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
- Rafael Blasco \<<rafabn@antiun.com>\>
- Antonio Espinosa \<<antonioea@antiun.com>\>
- Javier Iniesta \<<javieria@antiun.com>\>
- Vicent Cubells \<<vicent.cubells@tecnativa.com>\>
- Pedro M. Baeza \<<pedro.baeza@tecnativa.com>\>
- Luis M. Ontalba \<<luis.martinez@tecnativa.com>\>
- Jordi Ballester Alomar \<<jordi.ballester@eficent.com>\>
- Miquel Raïch \<<miquel.raich@eficent.com>\>
- Cristina Martin R.
9 changes: 0 additions & 9 deletions partner_industry_secondary/readme/CONTRIBUTORS.rst

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
To use this module, you need to:

* Go to any partner's form.
- Go to any partner's form.
14 changes: 8 additions & 6 deletions partner_industry_secondary/static/description/index.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
Expand Down Expand Up @@ -368,7 +369,7 @@ <h1 class="title">Partner Industry Secondary</h1>
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:239d219b7b25c790698cd580d9091e16c51cd2ba4e638677df6f35827168b0d6
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.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/partner-contact/tree/16.0/partner_industry_secondary"><img alt="OCA/partner-contact" src="https://img.shields.io/badge/github-OCA%2Fpartner--contact-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/partner-contact-16-0/partner-contact-16-0-partner_industry_secondary"><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/partner-contact&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><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.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/partner-contact/tree/17.0/partner_industry_secondary"><img alt="OCA/partner-contact" src="https://img.shields.io/badge/github-OCA%2Fpartner--contact-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/partner-contact-17-0/partner-contact-17-0-partner_industry_secondary"><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/partner-contact&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 module adds secondary industries for partners.</p>
<p><strong>Table of contents</strong></p>
<div class="contents local topic" id="contents">
Expand All @@ -390,10 +391,11 @@ <h1><a class="toc-backref" href="#toc-entry-1">Configuration</a></h1>
<ul class="simple">
<li>Go to <em>Contacts &gt; Configuration &gt; Industries</em>.</li>
</ul>
<p>By default only companies have industries. To activate industries in individuals also,
you need to activate the following setting:</p>
<p>By default only companies have industries. To activate industries in
individuals also, you need to activate the following setting:</p>
<ul class="simple">
<li>Go to <em>Settings &gt; General Settings &gt; Partner Industries &gt; Industry in contacts &gt; Use industry for individuals</em></li>
<li>Go to <em>Settings &gt; General Settings &gt; Partner Industries &gt; Industry in
contacts &gt; Use industry for individuals</em></li>
</ul>
</div>
<div class="section" id="usage">
Expand All @@ -408,7 +410,7 @@ <h1><a class="toc-backref" href="#toc-entry-3">Bug Tracker</a></h1>
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/partner-contact/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/partner-contact/issues/new?body=module:%20partner_industry_secondary%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/partner-contact/issues/new?body=module:%20partner_industry_secondary%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 @@ -440,7 +442,7 @@ <h2><a class="toc-backref" href="#toc-entry-7">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/partner-contact/tree/16.0/partner_industry_secondary">OCA/partner-contact</a> project on GitHub.</p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/partner-contact/tree/17.0/partner_industry_secondary">OCA/partner-contact</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
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit b3a536e

Please sign in to comment.