Skip to content

Commit 9f1c376

Browse files
[MIG] delivery_correos_express: Migration to 17.0
1 parent 7d69cc2 commit 9f1c376

File tree

3 files changed

+10
-44
lines changed

3 files changed

+10
-44
lines changed

delivery_correos_express/__manifest__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{
44
"name": "Delivery Correos Express",
55
"summary": "Delivery Carrier implementation for Correos Express using their API",
6-
"version": "16.0.1.0.0",
6+
"version": "17.0.1.0.0",
77
"category": "Stock",
88
"website": "https://github.com/OCA/delivery-carrier",
99
"author": "Studio73, Odoo Community Association (OCA)",

delivery_correos_express/views/delivery_carrier_view.xml

+8-36
Original file line numberDiff line numberDiff line change
@@ -7,66 +7,38 @@
77
<xpath expr="//notebook/page[1]" position='before'>
88
<page
99
string="Correos Express Configuration"
10-
attrs="{'invisible': [('delivery_type', '!=', 'correos_express')]}"
10+
invisible="delivery_type != 'correos_express'"
1111
>
1212
<group>
1313
<group>
1414
<field
1515
name="correos_express_username"
16-
attrs="{
17-
'required': [
18-
('delivery_type', '=', 'correos_express')
19-
]
20-
}"
16+
required="delivery_type == 'correos_express'"
2117
/>
2218
<field
2319
name="correos_express_password"
2420
password="True"
25-
attrs="{
26-
'required': [
27-
('delivery_type', '=', 'correos_express')
28-
]
29-
}"
21+
required="delivery_type == 'correos_express'"
3022
/>
3123
<field
3224
name="correos_express_customer_code"
33-
attrs="{
34-
'required': [
35-
('delivery_type', '=', 'correos_express')
36-
]
37-
}"
25+
required="delivery_type == 'correos_express'"
3826
/>
3927
<field
4028
name="correos_express_sender_code"
41-
attrs="{
42-
'required': [
43-
('delivery_type', '=', 'correos_express')
44-
]
45-
}"
29+
required="delivery_type == 'correos_express'"
4630
/>
4731
<field
4832
name="correos_express_label_type"
49-
attrs="{
50-
'required': [
51-
('delivery_type', '=', 'correos_express')
52-
]
53-
}"
33+
required="delivery_type == 'correos_express'"
5434
/>
5535
<field
5636
name="correos_express_product"
57-
attrs="{
58-
'required': [
59-
('delivery_type', '=', 'correos_express')
60-
]
61-
}"
37+
required="delivery_type == 'correos_express'"
6238
/>
6339
<field
6440
name="correos_express_transport"
65-
attrs="{
66-
'required': [
67-
('delivery_type', '=', 'correos_express')
68-
]
69-
}"
41+
required="delivery_type == 'correos_express'"
7042
/>
7143
</group>
7244
</group>

delivery_correos_express/views/stock_picking_views.xml

+1-7
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,7 @@
99
name="correos_express_get_label"
1010
string="Print Correos Express Label"
1111
type="object"
12-
attrs="{'invisible':[
13-
'|',
14-
'|',
15-
('carrier_tracking_ref', '=', False),
16-
('delivery_type', '!=', 'correos_express'),
17-
('state', '!=', 'done')
18-
]}"
12+
invisible="(carrier_tracking_ref != True) or (delivery_type != 'correos_express') or (state != 'done')"
1913
/>
2014
</xpath>
2115
</field>

0 commit comments

Comments
 (0)