Skip to content

Commit

Permalink
[IMP] partner_company_default: pre-commit auto fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
giarve committed Oct 22, 2024
1 parent b913a9a commit 8339540
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 29 deletions.
26 changes: 14 additions & 12 deletions partner_company_default/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,27 +17,29 @@ Partner Company Default
: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_company_default
:target: https://github.com/OCA/partner-contact/tree/17.0/partner_company_default
: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_company_default
:target: https://translation.odoo-community.org/projects/partner-contact-17-0/partner-contact-17-0-partner_company_default
: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|

This module assigns default company to res.parnter.

Background
~~~~~~~~~~
----------

Up to 12.0, Odoo used to assign a company by default when partner was added,
however the default company proposal has been removed since 13.0 with multi-company refactoring.
This causes inconveniences to users who want to seggregate partner records between companies.
Up to 12.0, Odoo used to assign a company by default when partner was
added, however the default company proposal has been removed since 13.0
with multi-company refactoring. This causes inconveniences to users who
want to seggregate partner records between companies.

ref. https://github.com/odoo/odoo/commit/25714692b23624d04a43862db26ebcf802b89399
ref.
https://github.com/odoo/odoo/commit/25714692b23624d04a43862db26ebcf802b89399

**Table of contents**

Expand All @@ -50,20 +52,20 @@ 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_company_default%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_company_default%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
~~~~~~~
-------

* Quartile Limited

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

This module is maintained by the OCA.

Expand All @@ -75,6 +77,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_company_default>`_ project on GitHub.
This module is part of the `OCA/partner-contact <https://github.com/OCA/partner-contact/tree/17.0/partner_company_default>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
3 changes: 3 additions & 0 deletions partner_company_default/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["whool"]
build-backend = "whool.buildapi"
11 changes: 11 additions & 0 deletions partner_company_default/readme/DESCRIPTION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
This module assigns default company to res.parnter.

## Background

Up to 12.0, Odoo used to assign a company by default when partner was
added, however the default company proposal has been removed since 13.0
with multi-company refactoring. This causes inconveniences to users who
want to seggregate partner records between companies.

ref.
<https://github.com/odoo/odoo/commit/25714692b23624d04a43862db26ebcf802b89399>
10 changes: 0 additions & 10 deletions partner_company_default/readme/DESCRIPTION.rst

This file was deleted.

16 changes: 9 additions & 7 deletions partner_company_default/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -369,14 +369,16 @@ <h1 class="title">Partner Company Default</h1>
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:c108ea7c185c326550a43f620bdc3f46f0c2e498583a709553da2806b82daeac
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<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_company_default"><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_company_default"><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_company_default"><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_company_default"><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 assigns default company to res.parnter.</p>
<div class="section" id="background">
<h1>Background</h1>
<p>Up to 12.0, Odoo used to assign a company by default when partner was added,
however the default company proposal has been removed since 13.0 with multi-company refactoring.
This causes inconveniences to users who want to seggregate partner records between companies.</p>
<p>ref. <a class="reference external" href="https://github.com/odoo/odoo/commit/25714692b23624d04a43862db26ebcf802b89399">https://github.com/odoo/odoo/commit/25714692b23624d04a43862db26ebcf802b89399</a></p>
<p>Up to 12.0, Odoo used to assign a company by default when partner was
added, however the default company proposal has been removed since 13.0
with multi-company refactoring. This causes inconveniences to users who
want to seggregate partner records between companies.</p>
<p>ref.
<a class="reference external" href="https://github.com/odoo/odoo/commit/25714692b23624d04a43862db26ebcf802b89399">https://github.com/odoo/odoo/commit/25714692b23624d04a43862db26ebcf802b89399</a></p>
<p><strong>Table of contents</strong></p>
<div class="contents local topic" id="contents">
<ul class="simple">
Expand All @@ -389,7 +391,7 @@ <h2><a class="toc-backref" href="#toc-entry-1">Bug Tracker</a></h2>
<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_company_default%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_company_default%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 All @@ -411,7 +413,7 @@ <h1>Maintainers</h1>
<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_company_default">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_company_default">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

0 comments on commit 8339540

Please sign in to comment.