Skip to content

Commit d70a242

Browse files
[IMP] delivery_dropoff_site: pre-commit auto fixes
1 parent 8a18834 commit d70a242

15 files changed

Lines changed: 101 additions & 108 deletions

File tree

delivery_dropoff_site/README.rst

Lines changed: 36 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -17,22 +17,22 @@ Delivery Drop-off Sites
1717
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
1818
:alt: License: AGPL-3
1919
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fdelivery--carrier-lightgray.png?logo=github
20-
:target: https://github.com/OCA/delivery-carrier/tree/16.0/delivery_dropoff_site
20+
:target: https://github.com/OCA/delivery-carrier/tree/17.0/delivery_dropoff_site
2121
:alt: OCA/delivery-carrier
2222
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
23-
:target: https://translation.odoo-community.org/projects/delivery-carrier-16-0/delivery-carrier-16-0-delivery_dropoff_site
23+
:target: https://translation.odoo-community.org/projects/delivery-carrier-17-0/delivery-carrier-17-0-delivery_dropoff_site
2424
:alt: Translate me on Weblate
2525
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
26-
:target: https://runboat.odoo-community.org/builds?repo=OCA/delivery-carrier&target_branch=16.0
26+
:target: https://runboat.odoo-community.org/builds?repo=OCA/delivery-carrier&target_branch=17.0
2727
:alt: Try me on Runboat
2828

2929
|badge1| |badge2| |badge3| |badge4| |badge5|
3030

3131
This module extend Odoo functionnalities, regarding delivery features to
3232
add a new concept of drop-off Sites.
3333

34-
Main international carriers provide transportation services to specific areas
35-
managed by them or by subcontractors.
34+
Main international carriers provide transportation services to specific
35+
areas managed by them or by subcontractors.
3636

3737
Then, recipients come pick up their packages in these sites.
3838

@@ -44,76 +44,74 @@ Then, recipients come pick up their packages in these sites.
4444
Configuration
4545
=============
4646

47-
* To configure drop-off sites, users should be member of 'Sale / Manager' or
48-
'Inventory / Manager'.
49-
50-
* To use this drop-off sites on sale orders, users should be member of
47+
- To configure drop-off sites, users should be member of 'Sale /
48+
Manager' or 'Inventory / Manager'.
49+
- To use this drop-off sites on sale orders, users should be member of
5150
'Technical Settings / Addresses in Sales Orders'.
5251

5352
Usage
5453
=====
5554

56-
* Go to *Sale* > *Delivery* > *Drop-off Sites*
55+
- Go to *Sale* > *Delivery* > *Drop-off Sites*
56+
57+
|image1|
5758

58-
.. figure:: https://raw.githubusercontent.com/OCA/delivery-carrier/10.0/delivery_dropoff_site/static/description/dropoff_site_tree.png
59-
:width: 80 %
60-
:align: center
59+
- You can add create new drop-off sites, filling address. you have the
60+
possilibity to generate geolocalization, base on the module
61+
:literal:`\`base_geolocalize`\ \`
6162

62-
* You can add create new drop-off sites, filling address.
63-
you have the possilibity to generate geolocalization, base on the module
64-
```base_geolocalize```
63+
|image2|
6564

66-
.. figure:: https://raw.githubusercontent.com/OCA/delivery-carrier/10.0/delivery_dropoff_site/static/description/dropoff_site_form.png
67-
:width: 80 %
68-
:align: center
65+
- Optionaly, you can set opening hours.
6966

70-
* Optionaly, you can set opening hours.
67+
|image3|
7168

72-
.. figure:: https://raw.githubusercontent.com/OCA/delivery-carrier/10.0/delivery_dropoff_site/static/description/dropoff_site_form_calendar.png
73-
:width: 80 %
74-
:align: center
69+
Then, in your sale order form, if you select a Delivery with drop-off
70+
sites enabled, you can select in the delivery address an drop-off site,
71+
and so use a new field Final recipitient to mention the name of partner
72+
that will pick up the parcel in the dropoff site.
7573

76-
Then, in your sale order form, if you select a Delivery with drop-off sites
77-
enabled, you can select in the delivery address an drop-off site, and
78-
so use a new field Final recipitient to mention the name of partner that will
79-
pick up the parcel in the dropoff site.
74+
.. |image1| image:: https://raw.githubusercontent.com/OCA/delivery-carrier/10.0/delivery_dropoff_site/static/description/dropoff_site_tree.png
75+
.. |image2| image:: https://raw.githubusercontent.com/OCA/delivery-carrier/10.0/delivery_dropoff_site/static/description/dropoff_site_form.png
76+
.. |image3| image:: https://raw.githubusercontent.com/OCA/delivery-carrier/10.0/delivery_dropoff_site/static/description/dropoff_site_form_calendar.png
8077

8178
Bug Tracker
8279
===========
8380

8481
Bugs are tracked on `GitHub Issues <https://github.com/OCA/delivery-carrier/issues>`_.
8582
In case of trouble, please check there if your issue has already been reported.
8683
If you spotted it first, help us to smash it by providing a detailed and welcomed
87-
`feedback <https://github.com/OCA/delivery-carrier/issues/new?body=module:%20delivery_dropoff_site%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
84+
`feedback <https://github.com/OCA/delivery-carrier/issues/new?body=module:%20delivery_dropoff_site%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
8885

8986
Do not contact contributors directly about support or help with technical issues.
9087

9188
Credits
9289
=======
9390

9491
Authors
95-
~~~~~~~
92+
-------
9693

9794
* Akretion
9895
* GRAP
9996

10097
Contributors
101-
~~~~~~~~~~~~
98+
------------
10299

103-
* David BEAL <david.beal@akretion.com>
104-
* Aymeric LECOMTE, akretion
105-
* Sébastien BEAU <sebastien.beau@akretion.com>
106-
* Sylvain LE GAL (https://twitter.com/legalsylvain)
100+
- David BEAL <david.beal@akretion.com>
101+
- Aymeric LECOMTE, akretion
102+
- Sébastien BEAU <sebastien.beau@akretion.com>
103+
- Sylvain LE GAL (https://twitter.com/legalsylvain)
107104

108105
Other credits
109-
~~~~~~~~~~~~~
106+
-------------
110107

111108
The development of this module has been financially supported by:
112109

113-
* GRAP, Groupement Régional Alimentaire de Proximité (http://www.grap.coop)
110+
- GRAP, Groupement Régional Alimentaire de Proximité
111+
(http://www.grap.coop)
114112

115113
Maintainers
116-
~~~~~~~~~~~
114+
-----------
117115

118116
This module is maintained by the OCA.
119117

@@ -125,6 +123,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose
125123
mission is to support the collaborative development of Odoo features and
126124
promote its widespread use.
127125

128-
This module is part of the `OCA/delivery-carrier <https://github.com/OCA/delivery-carrier/tree/16.0/delivery_dropoff_site>`_ project on GitHub.
126+
This module is part of the `OCA/delivery-carrier <https://github.com/OCA/delivery-carrier/tree/17.0/delivery_dropoff_site>`_ project on GitHub.
129127

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

delivery_dropoff_site/models/sale_order.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ class SaleOrderLine(models.Model):
7373
_inherit = "sale.order.line"
7474

7575
def _prepare_procurement_values(self, group_id):
76-
res = super(SaleOrderLine, self)._prepare_procurement_values(group_id=group_id)
76+
res = super()._prepare_procurement_values(group_id=group_id)
7777
res.update(
7878
{
7979
"final_shipping_partner_id": self.order_id.final_shipping_partner_id.id,

delivery_dropoff_site/models/stock_move.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class StockMove(models.Model):
1515
)
1616

1717
def _get_new_picking_values(self):
18-
res = super(StockMove, self)._get_new_picking_values()
18+
res = super()._get_new_picking_values()
1919
res.update(
2020
{
2121
"final_shipping_partner_id": self.final_shipping_partner_id.id,

delivery_dropoff_site/models/stock_rule.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ def _get_custom_move_fields(self):
1414
"""The purpose of this method is to be override in order to easily add
1515
fields from procurement 'values' argument to move data.
1616
"""
17-
ret = super(StockRule, self)._get_custom_move_fields()
17+
ret = super()._get_custom_move_fields()
1818
ret.append("final_shipping_partner_id")
1919
return ret
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[build-system]
2+
requires = ["whool"]
3+
build-backend = "whool.buildapi"
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
- To configure drop-off sites, users should be member of 'Sale /
2+
Manager' or 'Inventory / Manager'.
3+
- To use this drop-off sites on sale orders, users should be member of
4+
'Technical Settings / Addresses in Sales Orders'.

delivery_dropoff_site/readme/CONFIGURE.rst

Lines changed: 0 additions & 5 deletions
This file was deleted.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
- David BEAL \<<david.beal@akretion.com>\>
2+
- Aymeric LECOMTE, akretion
3+
- Sébastien BEAU \<<sebastien.beau@akretion.com>\>
4+
- Sylvain LE GAL (<https://twitter.com/legalsylvain>)

delivery_dropoff_site/readme/CONTRIBUTORS.rst

Lines changed: 0 additions & 4 deletions
This file was deleted.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
The development of this module has been financially supported by:
2+
3+
- GRAP, Groupement Régional Alimentaire de Proximité
4+
(<http://www.grap.coop>)

0 commit comments

Comments
 (0)