Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 4fd98f0

Browse files
bizzappdevStephaneMangin
authored andcommittedFeb 10, 2025
[MIG] delivery_postlogistics: Migration to 18.0
1 parent 5293e95 commit 4fd98f0

40 files changed

+527
-268
lines changed
 

‎delivery_postlogistics/README.rst

+25-24
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,13 @@ See `Log in <https://account.post.ch/selfadmin/?login&lang=en>`__
5656

5757
To configure:
5858

59-
- Go to Inventory -> Configuration -> Delivery -> Shipping Methods
60-
- Create new shipping methods for PostLogistics and set your login
61-
informations in the "PostLogistics" tab
62-
- Go to Inventory -> Configuration -> Delivery -> Delivery Packages to
63-
create the PostLogistics delivery packaging with the relevant Package
64-
Code (see section 8.10 of
65-
https://developer.post.ch/en/digital-commerce-api for available
66-
codes)
59+
- Go to Inventory -> Configuration -> Delivery -> Shipping Methods
60+
- Create new shipping methods for PostLogistics and set your login
61+
informations in the "PostLogistics" tab
62+
- Go to Inventory -> Configuration -> Delivery -> Delivery Packages to
63+
create the PostLogistics delivery packaging with the relevant Package
64+
Code (see section 8.10 of
65+
https://developer.post.ch/en/digital-commerce-api for available codes)
6766

6867
Technical references
6968
--------------------
@@ -74,11 +73,11 @@ documentation <https://www.post.ch/en/business/a-z-of-subjects/dropping-off-mail
7473
Known issues / Roadmap
7574
======================
7675

77-
- Integration of price webservice :
78-
https://www.post.ch/en/customer-center/all-online-services/preise-berechnen/info
79-
- Not sure if the recursive patch of suds is still needed as there's no
80-
need to use the integration WS anymore. However we still want to
81-
patch open to get meaningful error messages.
76+
- Integration of price webservice :
77+
https://www.post.ch/en/customer-center/all-online-services/preise-berechnen/info
78+
- Not sure if the recursive patch of suds is still needed as there's no
79+
need to use the integration WS anymore. However we still want to patch
80+
open to get meaningful error messages.
8281

8382
Bug Tracker
8483
===========
@@ -101,31 +100,33 @@ Authors
101100
Contributors
102101
------------
103102

104-
- Yannick Vaucher <yannick.vaucher@camptocamp.com>
103+
- Yannick Vaucher <yannick.vaucher@camptocamp.com>
105104

106-
- Guewen Baconnier <guewen.baconnier@camptocamp.com>
105+
- Guewen Baconnier <guewen.baconnier@camptocamp.com>
107106

108-
- Akim Juillerat <akim.juillerat@camptocamp.com>
107+
- Akim Juillerat <akim.juillerat@camptocamp.com>
109108

110-
- Julien Coux <julien.coux@camptocamp.com>
109+
- Julien Coux <julien.coux@camptocamp.com>
111110

112-
- Dung Tran <dungtd@trobz.com>
111+
- Dung Tran <dungtd@trobz.com>
113112

114-
- Phuc Tran <phuc@trobz.com>
113+
- Phuc Tran <phuc@trobz.com>
115114

116-
- Jacques-Etienne Baudoux <je@bcim.be>
115+
- Jacques-Etienne Baudoux <je@bcim.be>
117116

118-
- `Trobz <https://trobz.com>`__:
117+
- `Trobz <https://trobz.com>`__:
119118

120-
- Jack Le <anlh@trobz.com>
119+
- Jack Le <anlh@trobz.com>
120+
121+
- Stéphane Mangin stephane.mangin@camptocamp.com
121122

122123
Other credits
123124
-------------
124125

125126
The development of this module in version 14.0 and its migration from
126-
14.0 to 16.0 has been financially supported by:
127+
14.0 to 16.0, 16.0 to 18.0 has been financially supported by:
127128

128-
- Camptocamp
129+
- Camptocamp
129130

130131
Maintainers
131132
-----------

‎delivery_postlogistics/__manifest__.py

+11-3
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,18 @@
1-
# © 2013-2016 Yannick Vaucher (Camptocamp SA)
1+
# © 2013 Yannick Vaucher (Camptocamp SA)
22
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
33
{
44
"name": "PostLogistics Shipping - “Barcode” web service",
55
"summary": "Print PostLogistics shipping labels using the Barcode web service",
6-
"version": "16.0.1.1.0",
6+
"version": "18.0.1.0.0",
77
"author": "Camptocamp,Odoo Community Association (OCA)",
88
"maintainer": "Camptocamp",
99
"license": "AGPL-3",
1010
"category": "Delivery",
1111
"complexity": "normal",
12-
"depends": ["delivery", "mail", "base", "stock"],
12+
"depends": [
13+
"stock_delivery" "delivery_carrier_option",
14+
"delivery_carrier_shipping_label",
15+
],
1316
"website": "https://github.com/OCA/delivery-carrier",
1417
"data": [
1518
"security/ir.model.access.csv",
@@ -26,4 +29,9 @@
2629
"installable": True,
2730
"auto_install": False,
2831
"application": True,
32+
"external_dependencies": {
33+
"python": [
34+
"openupgradelib",
35+
],
36+
},
2937
}

‎delivery_postlogistics/data/delivery.xml

+14-14
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<!-- Label layouts -->
44
<record
55
id="postlogistics_layout_option_a7"
6-
model="postlogistics.delivery.carrier.template.option"
6+
model="delivery.carrier.template.option"
77
>
88
<field name="name">Format A7</field>
99
<field name="code">A7</field>
@@ -12,7 +12,7 @@
1212
</record>
1313
<record
1414
id="postlogistics_layout_option_a6"
15-
model="postlogistics.delivery.carrier.template.option"
15+
model="delivery.carrier.template.option"
1616
>
1717
<field name="name">Format A6</field>
1818
<field name="code">A6</field>
@@ -21,7 +21,7 @@
2121
</record>
2222
<record
2323
id="postlogistics_layout_option_a5"
24-
model="postlogistics.delivery.carrier.template.option"
24+
model="delivery.carrier.template.option"
2525
>
2626
<field name="name">Format A5</field>
2727
<field name="code">A5</field>
@@ -30,7 +30,7 @@
3030
</record>
3131
<record
3232
id="postlogistics_layout_option_fe"
33-
model="postlogistics.delivery.carrier.template.option"
33+
model="delivery.carrier.template.option"
3434
>
3535
<field name="name">Format FE</field>
3636
<field name="code">FE</field>
@@ -40,7 +40,7 @@
4040
<!-- Output formats -->
4141
<record
4242
id="postlogistics_output_format_option_eps"
43-
model="postlogistics.delivery.carrier.template.option"
43+
model="delivery.carrier.template.option"
4444
>
4545
<field name="name">EPS</field>
4646
<field name="code">EPS</field>
@@ -49,7 +49,7 @@
4949
</record>
5050
<record
5151
id="postlogistics_output_format_option_gif"
52-
model="postlogistics.delivery.carrier.template.option"
52+
model="delivery.carrier.template.option"
5353
>
5454
<field name="name">GIF</field>
5555
<field name="code">GIF</field>
@@ -58,7 +58,7 @@
5858
</record>
5959
<record
6060
id="postlogistics_output_format_option_jpg"
61-
model="postlogistics.delivery.carrier.template.option"
61+
model="delivery.carrier.template.option"
6262
>
6363
<field name="name">JPG</field>
6464
<field name="code">JPG</field>
@@ -67,7 +67,7 @@
6767
</record>
6868
<record
6969
id="postlogistics_output_format_option_png"
70-
model="postlogistics.delivery.carrier.template.option"
70+
model="delivery.carrier.template.option"
7171
>
7272
<field name="name">PNG</field>
7373
<field name="code">PNG</field>
@@ -76,7 +76,7 @@
7676
</record>
7777
<record
7878
id="postlogistics_output_format_option_pdf"
79-
model="postlogistics.delivery.carrier.template.option"
79+
model="delivery.carrier.template.option"
8080
>
8181
<field name="name">PDF</field>
8282
<field name="code">PDF</field>
@@ -85,7 +85,7 @@
8585
</record>
8686
<record
8787
id="postlogistics_output_format_option_spdf"
88-
model="postlogistics.delivery.carrier.template.option"
88+
model="delivery.carrier.template.option"
8989
>
9090
<field name="name">sPDF</field>
9191
<field name="code">sPDF</field>
@@ -94,7 +94,7 @@
9494
</record>
9595
<record
9696
id="postlogistics_output_format_option_zpl2"
97-
model="postlogistics.delivery.carrier.template.option"
97+
model="delivery.carrier.template.option"
9898
>
9999
<field name="name">ZPL2</field>
100100
<field name="code">ZPL2</field>
@@ -104,7 +104,7 @@
104104
<!-- resolutions -->
105105
<record
106106
id="postlogistics_output_resolution_option_200ppp"
107-
model="postlogistics.delivery.carrier.template.option"
107+
model="delivery.carrier.template.option"
108108
>
109109
<field name="name">200 ppp</field>
110110
<field name="code">200</field>
@@ -113,7 +113,7 @@
113113
</record>
114114
<record
115115
id="postlogistics_output_resolution_option_300ppp"
116-
model="postlogistics.delivery.carrier.template.option"
116+
model="delivery.carrier.template.option"
117117
>
118118
<field name="name">300 ppp</field>
119119
<field name="code">300</field>
@@ -122,7 +122,7 @@
122122
</record>
123123
<record
124124
id="postlogistics_output_resolution_option_600ppp"
125-
model="postlogistics.delivery.carrier.template.option"
125+
model="delivery.carrier.template.option"
126126
>
127127
<field name="name">600 ppp</field>
128128
<field name="code">600</field>

‎delivery_postlogistics/i18n/delivery_postlogistics.pot

+14-14
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,17 @@ msgstr ""
1414
"Plural-Forms: \n"
1515

1616
#. module: delivery_postlogistics
17-
#: model:postlogistics.delivery.carrier.template.option,name:delivery_postlogistics.postlogistics_output_resolution_option_200ppp
17+
#: model:delivery.carrier.template.option,name:delivery_postlogistics.postlogistics_output_resolution_option_200ppp
1818
msgid "200 ppp"
1919
msgstr ""
2020

2121
#. module: delivery_postlogistics
22-
#: model:postlogistics.delivery.carrier.template.option,name:delivery_postlogistics.postlogistics_output_resolution_option_300ppp
22+
#: model:delivery.carrier.template.option,name:delivery_postlogistics.postlogistics_output_resolution_option_300ppp
2323
msgid "300 ppp"
2424
msgstr ""
2525

2626
#. module: delivery_postlogistics
27-
#: model:postlogistics.delivery.carrier.template.option,name:delivery_postlogistics.postlogistics_output_resolution_option_600ppp
27+
#: model:delivery.carrier.template.option,name:delivery_postlogistics.postlogistics_output_resolution_option_600ppp
2828
msgid "600 ppp"
2929
msgstr ""
3030

@@ -210,7 +210,7 @@ msgid "Domicile Post office"
210210
msgstr ""
211211

212212
#. module: delivery_postlogistics
213-
#: model:postlogistics.delivery.carrier.template.option,name:delivery_postlogistics.postlogistics_output_format_option_eps
213+
#: model:delivery.carrier.template.option,name:delivery_postlogistics.postlogistics_output_format_option_eps
214214
msgid "EPS"
215215
msgstr ""
216216

@@ -275,22 +275,22 @@ msgid "For notify delivery by telephone (ZAW3213)"
275275
msgstr ""
276276

277277
#. module: delivery_postlogistics
278-
#: model:postlogistics.delivery.carrier.template.option,name:delivery_postlogistics.postlogistics_layout_option_a5
278+
#: model:delivery.carrier.template.option,name:delivery_postlogistics.postlogistics_layout_option_a5
279279
msgid "Format A5"
280280
msgstr ""
281281

282282
#. module: delivery_postlogistics
283-
#: model:postlogistics.delivery.carrier.template.option,name:delivery_postlogistics.postlogistics_layout_option_a6
283+
#: model:delivery.carrier.template.option,name:delivery_postlogistics.postlogistics_layout_option_a6
284284
msgid "Format A6"
285285
msgstr ""
286286

287287
#. module: delivery_postlogistics
288-
#: model:postlogistics.delivery.carrier.template.option,name:delivery_postlogistics.postlogistics_layout_option_a7
288+
#: model:delivery.carrier.template.option,name:delivery_postlogistics.postlogistics_layout_option_a7
289289
msgid "Format A7"
290290
msgstr ""
291291

292292
#. module: delivery_postlogistics
293-
#: model:postlogistics.delivery.carrier.template.option,name:delivery_postlogistics.postlogistics_layout_option_fe
293+
#: model:delivery.carrier.template.option,name:delivery_postlogistics.postlogistics_layout_option_fe
294294
msgid "Format FE"
295295
msgstr ""
296296

@@ -300,7 +300,7 @@ msgid "Franking License"
300300
msgstr ""
301301

302302
#. module: delivery_postlogistics
303-
#: model:postlogistics.delivery.carrier.template.option,name:delivery_postlogistics.postlogistics_output_format_option_gif
303+
#: model:delivery.carrier.template.option,name:delivery_postlogistics.postlogistics_output_format_option_gif
304304
msgid "GIF"
305305
msgstr ""
306306

@@ -351,7 +351,7 @@ msgid "Is public document"
351351
msgstr ""
352352

353353
#. module: delivery_postlogistics
354-
#: model:postlogistics.delivery.carrier.template.option,name:delivery_postlogistics.postlogistics_output_format_option_jpg
354+
#: model:delivery.carrier.template.option,name:delivery_postlogistics.postlogistics_output_format_option_jpg
355355
msgid "JPG"
356356
msgstr ""
357357

@@ -494,12 +494,12 @@ msgid "Output format not set"
494494
msgstr ""
495495

496496
#. module: delivery_postlogistics
497-
#: model:postlogistics.delivery.carrier.template.option,name:delivery_postlogistics.postlogistics_output_format_option_pdf
497+
#: model:delivery.carrier.template.option,name:delivery_postlogistics.postlogistics_output_format_option_pdf
498498
msgid "PDF"
499499
msgstr ""
500500

501501
#. module: delivery_postlogistics
502-
#: model:postlogistics.delivery.carrier.template.option,name:delivery_postlogistics.postlogistics_output_format_option_png
502+
#: model:delivery.carrier.template.option,name:delivery_postlogistics.postlogistics_output_format_option_png
503503
msgid "PNG"
504504
msgstr ""
505505

@@ -865,7 +865,7 @@ msgid "ZPL Patch String"
865865
msgstr ""
866866

867867
#. module: delivery_postlogistics
868-
#: model:postlogistics.delivery.carrier.template.option,name:delivery_postlogistics.postlogistics_output_format_option_zpl2
868+
#: model:delivery.carrier.template.option,name:delivery_postlogistics.postlogistics_output_format_option_zpl2
869869
msgid "ZPL2"
870870
msgstr ""
871871

@@ -896,7 +896,7 @@ msgid "resolution"
896896
msgstr ""
897897

898898
#. module: delivery_postlogistics
899-
#: model:postlogistics.delivery.carrier.template.option,name:delivery_postlogistics.postlogistics_output_format_option_spdf
899+
#: model:delivery.carrier.template.option,name:delivery_postlogistics.postlogistics_output_format_option_spdf
900900
msgid "sPDF"
901901
msgstr ""
902902

0 commit comments

Comments
 (0)
Please sign in to comment.