|
11 | 11 | <page
|
12 | 12 | name="postlogistics"
|
13 | 13 | string="PostLogistics"
|
14 |
| - attrs="{'invisible': [('delivery_type', '!=', 'postlogistics')]}" |
| 14 | + invisible="delivery_type != 'postlogistics'" |
15 | 15 | >
|
16 | 16 | <group>
|
17 | 17 | <group string="Credentials">
|
18 | 18 | <field
|
19 | 19 | name="postlogistics_endpoint_url"
|
20 |
| - attrs="{'required': [('delivery_type', '=', 'postlogistics')]}" |
| 20 | + required="delivery_type == 'postlogistics'" |
21 | 21 | />
|
22 | 22 | <field
|
23 | 23 | name="postlogistics_client_id"
|
24 |
| - attrs="{'required': [('delivery_type', '=', 'postlogistics')]}" |
| 24 | + required="delivery_type == 'postlogistics'" |
25 | 25 | />
|
26 | 26 | <field
|
27 | 27 | name="postlogistics_client_secret"
|
28 | 28 | password="True"
|
29 |
| - attrs="{'required': [('delivery_type', '=', 'postlogistics')]}" |
| 29 | + required="delivery_type == 'postlogistics'" |
30 | 30 | />
|
31 | 31 | <button
|
32 | 32 | name="verify_credentials"
|
|
38 | 38 | <group string="Template">
|
39 | 39 | <field
|
40 | 40 | name="postlogistics_label_layout"
|
41 |
| - attrs="{'required': [('delivery_type', '=', 'postlogistics')]}" |
| 41 | + required="delivery_type == 'postlogistics'" |
42 | 42 | />
|
43 | 43 | <field
|
44 | 44 | name="postlogistics_output_format"
|
45 |
| - attrs="{'required': [('delivery_type', '=', 'postlogistics')]}" |
| 45 | + required="delivery_type == 'postlogistics'" |
46 | 46 | />
|
47 | 47 | <field
|
48 | 48 | name="postlogistics_resolution"
|
49 |
| - attrs="{'required': [('delivery_type', '=', 'postlogistics')]}" |
| 49 | + required="delivery_type == 'postlogistics'" |
50 | 50 | />
|
51 | 51 | </group>
|
52 | 52 | <group string="Misc.">
|
53 | 53 | <field
|
54 | 54 | name="postlogistics_license_id"
|
55 |
| - attrs="{'required': [('delivery_type', '=', 'postlogistics')]}" |
| 55 | + required="delivery_type == 'postlogistics'" |
56 | 56 | />
|
57 | 57 | <field
|
58 | 58 | name="postlogistics_default_package_type_id"
|
59 |
| - attrs="{'required': [('delivery_type', '=', 'postlogistics')]}" |
| 59 | + required="delivery_type == 'postlogistics'" |
60 | 60 | />
|
61 | 61 | <field
|
62 | 62 | name="postlogistics_tracking_format"
|
63 |
| - attrs="{'required': [('delivery_type', '=', 'postlogistics')]}" |
| 63 | + required="delivery_type == 'postlogistics'" |
64 | 64 | />
|
65 | 65 | <field
|
66 | 66 | name="postlogistics_proclima_logo"
|
67 |
| - attrs="{'required': [('delivery_type', '=', 'postlogistics')]}" |
| 67 | + required="delivery_type == 'postlogistics'" |
68 | 68 | />
|
69 | 69 | <field name="postlogistics_office" />
|
70 | 70 | </group>
|
|
0 commit comments