Skip to content

Commit 0b24d58

Browse files
bizzappdevStephaneMangin
authored andcommitted
[MIG] delivery_postlogistics: Migration to 18.0
1 parent 5293e95 commit 0b24d58

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+684
-424
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
-----------
+14-3
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,27 @@
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",
14+
"delivery_carrier_info",
15+
"delivery_carrier_option",
16+
"delivery_carrier_shipping_label",
17+
],
1318
"website": "https://github.com/OCA/delivery-carrier",
1419
"data": [
1520
"security/ir.model.access.csv",
1621
"data/partner.xml",
1722
"data/product.xml",
1823
"data/delivery.xml",
24+
"data/package_type.xml",
1925
"views/delivery.xml",
2026
"views/stock_package_type_view.xml",
2127
"views/stock_quant_package_view.xml",
@@ -26,4 +32,9 @@
2632
"installable": True,
2733
"auto_install": False,
2834
"application": True,
35+
"external_dependencies": {
36+
"python": [
37+
"openupgradelib",
38+
],
39+
},
2940
}

delivery_postlogistics/data/delivery.xml

+28-28
Original file line numberDiff line numberDiff line change
@@ -3,130 +3,130 @@
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>
10-
<field name="postlogistics_type">label_layout</field>
10+
<field name="type">label_layout</field>
1111
<field name="partner_id" ref="partner_postlogistics" />
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>
19-
<field name="postlogistics_type">label_layout</field>
19+
<field name="type">label_layout</field>
2020
<field name="partner_id" ref="partner_postlogistics" />
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>
28-
<field name="postlogistics_type">label_layout</field>
28+
<field name="type">label_layout</field>
2929
<field name="partner_id" ref="partner_postlogistics" />
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>
37-
<field name="postlogistics_type">label_layout</field>
37+
<field name="type">label_layout</field>
3838
<field name="partner_id" ref="partner_postlogistics" />
3939
</record>
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>
47-
<field name="postlogistics_type">output_format</field>
47+
<field name="type">output_format</field>
4848
<field name="partner_id" ref="partner_postlogistics" />
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>
56-
<field name="postlogistics_type">output_format</field>
56+
<field name="type">output_format</field>
5757
<field name="partner_id" ref="partner_postlogistics" />
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>
65-
<field name="postlogistics_type">output_format</field>
65+
<field name="type">output_format</field>
6666
<field name="partner_id" ref="partner_postlogistics" />
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>
74-
<field name="postlogistics_type">output_format</field>
74+
<field name="type">output_format</field>
7575
<field name="partner_id" ref="partner_postlogistics" />
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>
83-
<field name="postlogistics_type">output_format</field>
83+
<field name="type">output_format</field>
8484
<field name="partner_id" ref="partner_postlogistics" />
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>
92-
<field name="postlogistics_type">output_format</field>
92+
<field name="type">output_format</field>
9393
<field name="partner_id" ref="partner_postlogistics" />
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>
101-
<field name="postlogistics_type">output_format</field>
101+
<field name="type">output_format</field>
102102
<field name="partner_id" ref="partner_postlogistics" />
103103
</record>
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>
111-
<field name="postlogistics_type">resolution</field>
111+
<field name="type">resolution</field>
112112
<field name="partner_id" ref="partner_postlogistics" />
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>
120-
<field name="postlogistics_type">resolution</field>
120+
<field name="type">resolution</field>
121121
<field name="partner_id" ref="partner_postlogistics" />
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>
129-
<field name="postlogistics_type">resolution</field>
129+
<field name="type">resolution</field>
130130
<field name="partner_id" ref="partner_postlogistics" />
131131
</record>
132132
</odoo>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?xml version="1.0" encoding="utf-8" ?>
2+
<!-- Copyright 2025 Camptocamp SA
3+
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
4+
<odoo noupdate="1">
5+
<record id="postlogistics_default_package_type" model="stock.package.type">
6+
<field name="name">PostLogistics Default Package Type</field>
7+
<field name="shipper_package_code">ECO</field>
8+
<field name="package_carrier_type">postlogistics</field>
9+
<field name="company_id" ref="base.main_company" />
10+
</record>
11+
</odoo>

0 commit comments

Comments
 (0)