Skip to content

Commit

Permalink
[IMP] partner_shipping_policy: pre-commit auto fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Samir GUESMI committed Feb 4, 2025
1 parent 662ce63 commit 63ca762
Show file tree
Hide file tree
Showing 10 changed files with 46 additions and 34 deletions.
35 changes: 19 additions & 16 deletions partner_shipping_policy/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,23 @@ Partner Shipping Policy
: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_shipping_policy
:target: https://github.com/OCA/partner-contact/tree/18.0/partner_shipping_policy
: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_shipping_policy
:target: https://translation.odoo-community.org/projects/partner-contact-18-0/partner-contact-18-0-partner_shipping_policy
: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=18.0
:alt: Try me on Runboat

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

A new field is introduced to specify the shipping policy for each partner.
In sales orders, the shipping policy will be set to the delivery address contact shipping policy.
If the field is empty, it falls back to the shipping policy set in the main contact.
If neither the delivery address nor the customer contact has a shipping policy set, it will be set with the configured default value.
A new field is introduced to specify the shipping policy for each
partner. In sales orders, the shipping policy will be set to the
delivery address contact shipping policy. If the field is empty, it
falls back to the shipping policy set in the main contact. If neither
the delivery address nor the customer contact has a shipping policy set,
it will be set with the configured default value.

**Table of contents**

Expand All @@ -41,35 +43,36 @@ If neither the delivery address nor the customer contact has a shipping policy s
Usage
=====

Fill in the shipping policy field for the contact in the contact form. You can find this new field in the "Sales & Purchase" tab.
When creating a sales order the shipping policy will be set taking into account the delivery address shipping policy or the main contact shipping policy.
Fill in the shipping policy field for the contact in the contact form.
You can find this new field in the "Sales & Purchase" tab. When creating
a sales order the shipping policy will be set taking into account the
delivery address shipping policy or the main contact shipping policy.

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_shipping_policy%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_shipping_policy%0Aversion:%2018.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
~~~~~~~
-------

* ForgeFlow

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

* Marina Alapont <[email protected]>
------------

- Marina Alapont <[email protected]>

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

This module is maintained by the OCA.

Expand All @@ -81,6 +84,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_shipping_policy>`_ project on GitHub.
This module is part of the `OCA/partner-contact <https://github.com/OCA/partner-contact/tree/18.0/partner_shipping_policy>`_ 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_shipping_policy/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["whool"]
build-backend = "whool.buildapi"
1 change: 1 addition & 0 deletions partner_shipping_policy/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Marina Alapont \<<[email protected]>\>
2 changes: 0 additions & 2 deletions partner_shipping_policy/readme/CONTRIBUTORS.rst

This file was deleted.

6 changes: 6 additions & 0 deletions partner_shipping_policy/readme/DESCRIPTION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
A new field is introduced to specify the shipping policy for each
partner. In sales orders, the shipping policy will be set to the
delivery address contact shipping policy. If the field is empty, it
falls back to the shipping policy set in the main contact. If neither
the delivery address nor the customer contact has a shipping policy set,
it will be set with the configured default value.
4 changes: 0 additions & 4 deletions partner_shipping_policy/readme/DESCRIPTION.rst

This file was deleted.

4 changes: 4 additions & 0 deletions partner_shipping_policy/readme/USAGE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Fill in the shipping policy field for the contact in the contact form.
You can find this new field in the "Sales & Purchase" tab. When creating
a sales order the shipping policy will be set taking into account the
delivery address shipping policy or the main contact shipping policy.
2 changes: 0 additions & 2 deletions partner_shipping_policy/readme/USAGE.rst

This file was deleted.

22 changes: 13 additions & 9 deletions partner_shipping_policy/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -369,11 +369,13 @@ <h1 class="title">Partner Shipping Policy</h1>
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:0103ff75596e588ec836ca48c37ee0fdd424696dc4d8c2d6266a66d28c7c85f7
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<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_shipping_policy"><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_shipping_policy"><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 new field is introduced to specify the shipping policy for each partner.
In sales orders, the shipping policy will be set to the delivery address contact shipping policy.
If the field is empty, it falls back to the shipping policy set in the main contact.
If neither the delivery address nor the customer contact has a shipping policy set, it will be set with the configured default value.</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/18.0/partner_shipping_policy"><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-18-0/partner-contact-18-0-partner_shipping_policy"><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=18.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p>A new field is introduced to specify the shipping policy for each
partner. In sales orders, the shipping policy will be set to the
delivery address contact shipping policy. If the field is empty, it
falls back to the shipping policy set in the main contact. If neither
the delivery address nor the customer contact has a shipping policy set,
it will be set with the configured default value.</p>
<p><strong>Table of contents</strong></p>
<div class="contents local topic" id="contents">
<ul class="simple">
Expand All @@ -389,15 +391,17 @@ <h1 class="title">Partner Shipping Policy</h1>
</div>
<div class="section" id="usage">
<h1><a class="toc-backref" href="#toc-entry-1">Usage</a></h1>
<p>Fill in the shipping policy field for the contact in the contact form. You can find this new field in the “Sales &amp; Purchase” tab.
When creating a sales order the shipping policy will be set taking into account the delivery address shipping policy or the main contact shipping policy.</p>
<p>Fill in the shipping policy field for the contact in the contact form.
You can find this new field in the “Sales &amp; Purchase” tab. When creating
a sales order the shipping policy will be set taking into account the
delivery address shipping policy or the main contact shipping policy.</p>
</div>
<div class="section" id="bug-tracker">
<h1><a class="toc-backref" href="#toc-entry-2">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_shipping_policy%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_shipping_policy%0Aversion:%2018.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 @@ -423,7 +427,7 @@ <h2><a class="toc-backref" href="#toc-entry-6">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_shipping_policy">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/18.0/partner_shipping_policy">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
1 change: 0 additions & 1 deletion partner_shipping_policy/views/res_partner_views.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>

<record id="view_partner_form_picking_policy" model="ir.ui.view">
<field name="model">res.partner</field>
<field name="inherit_id" ref="base.view_partner_form" />
Expand Down

0 comments on commit 63ca762

Please sign in to comment.