forked from OCA/delivery-carrier
-
Notifications
You must be signed in to change notification settings - Fork 5
/
delivery_view.xml
69 lines (63 loc) · 3.16 KB
/
delivery_view.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<?xml version="1.0" encoding="UTF-8"?>
<openerp>
<data>
<!-- INHERITED VIEW FOR THE OBJECT : delivery_carrier_template_option -->
<record id="delivery_carrier_template_option_view_form" model="ir.ui.view">
<field name="name">delivery_base.delivery_carrier_option.view_form</field>
<field name="model">delivery.carrier.template.option</field>
<field name="inherit_id" ref="base_delivery_carrier_label.delivery_carrier_template_option_view_form"/>
<field name="arch" type="xml">
<field name="name" position="after">
<field name="postlogistics_service_group_id"/>
</field>
</field>
</record>
<record id="delivery_carrier_template_option_view_tree" model="ir.ui.view">
<field name="name">delivery_base.delivery_carrier_template_option.view_tree</field>
<field name="model">delivery.carrier.template.option</field>
<field name="inherit_id" ref="base_delivery_carrier_label.delivery_carrier_template_option_view_tree"/>
<field name="arch" type="xml">
<field name="name" position="after">
<field name="postlogistics_service_group_id"/>
</field>
</field>
</record>
<!-- INHERITED VIEW FOR THE OBJECT : delivery_carrier_option -->
<record id="delivery_carrier_option_view_form" model="ir.ui.view">
<field name="name">delivery_base.delivery_carrier_option.view_form</field>
<field name="model">delivery.carrier.option</field>
<field name="inherit_id" ref="base_delivery_carrier_label.delivery_carrier_option_view_form" />
<field name="arch" type="xml">
<field name="tmpl_option_id" position="before">
<field name="carrier_id" invisible="1"/>
</field>
</field>
</record>
<!-- INHERITED VIEW FOR THE OBJECT : delivery.carrier -->
<record id="view_delivery_carrier_form" model="ir.ui.view">
<field name="name">delivery_base.delivery.carrier.view_form</field>
<field name="model">delivery.carrier</field>
<field name="inherit_id" ref="base_delivery_carrier_label.view_delivery_carrier_form" />
<field name="arch" type="xml">
<field name="type" position="after">
<field name="postlogistics_service_group_id" attrs="{'invisible': [('type', '!=', 'postlogistics')], 'required': [('type', '=', 'postlogistics')]}"/>
<field name="postlogistics_license_id" attrs="{'invisible': [('type', '!=', 'postlogistics')]}"/>
<field name="allowed_option_ids" invisible="1"/>
</field>
<field name="available_option_ids" position="attributes">
<attribute name="context">{'default_carrier_id': active_id, 'default_allowed_option_ids': allowed_option_ids}</attribute>
</field>
</field>
</record>
<record model="ir.ui.view" id="view_quant_package_form">
<field name="name">stock.quant.package.form</field>
<field name="model">stock.quant.package</field>
<field name="inherit_id" ref="stock.view_quant_package_form"/>
<field name="arch" type="xml">
<field name="parent_id" position="after">
<field name="postlogistics_manual_cod_amount"/>
</field>
</field>
</record>
</data>
</openerp>