-
Notifications
You must be signed in to change notification settings - Fork 18
/
carrier.xml
42 lines (38 loc) · 1.78 KB
/
carrier.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
<?xml version="1.0"?>
<tryton>
<data>
<record model="ir.ui.view" id="party_configuration_view_form">
<field name="model">party.configuration</field>
<field name="inherit" ref="party.party_configuration_view_form"/>
<field name="name">party_configuration_form</field>
</record>
<record model="ir.ui.view" id="carrier_view_form">
<field name="model">carrier</field>
<field name="inherit" ref="carrier.carrier_view_form" />
<field name="name">carrier_form</field>
</record>
<!--Adding active to tree-->
<record model="ir.ui.view" id="carrier_view_tree">
<field name="model">carrier</field>
<field name="inherit" ref="carrier.carrier_view_tree"/>
<field name="name">carrier_tree</field>
</record>
<!-- Adding Active and Disabled tabs in Carrier -->
<record model="ir.action.act_window" id="carrier.act_carrier_form">
<field name="name">Carrier</field>
<field name="context" eval='{"active_test": False}' pyson="1"/>
</record>
<record model="ir.action.act_window.domain" id="act_carrier_form_active">
<field name="name">Active</field>
<field name="sequence" eval="10"/>
<field name="domain" eval='[("active", "=", True)]' pyson="1"/>
<field name="act_window" ref="carrier.act_carrier_form"/>
</record>
<record model="ir.action.act_window.domain" id="act_carrier_form_inactive">
<field name="name">Disabled</field>
<field name="sequence" eval="20"/>
<field name="domain" eval='[("active", "=", False)]' pyson="1"/>
<field name="act_window" ref="carrier.act_carrier_form"/>
</record>
</data>
</tryton>