-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathproduct.xml
88 lines (84 loc) · 4.33 KB
/
product.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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
<?xml version="1.0"?>
<tryton>
<data>
<record model="ir.ui.view" id="product_view_form">
<field name="model">product.product</field>
<field name="inherit" ref="product.product_view_form"/>
<field name="name">product_form</field>
</record>
<record model="ir.ui.view" id="product_sale_channel_listing_tree">
<field name="model">product.product.channel_listing</field>
<field name="type">tree</field>
<field name="name">product_channel_listing_tree</field>
</record>
<record model="ir.ui.view" id="product_sale_channel_listing_form">
<field name="model">product.product.channel_listing</field>
<field name="type">form</field>
<field name="name">product_channel_listing_form</field>
</record>
<!-- Relate from Channel to Product Listing -->
<record model="ir.action.act_window" id="act_sale_channel_listing2">
<field name="name">Channel Listing</field>
<field name="res_model">product.product.channel_listing</field>
<field name="domain" eval="[('channel', '=', Eval('active_id'))]" pyson="1"/>
</record>
<record model="ir.action.keyword" id="act_sale_channel_listing_keyword">
<field name="keyword">form_relate</field>
<field name="model">sale.channel,-1</field>
<field name="action" ref="act_sale_channel_listing2"/>
</record>
<record model="ir.action.act_window" id="act_sale_channel_listing">
<field name="name">Channel Listing</field>
<field name="res_model">product.product.channel_listing</field>
</record>
<record model="ir.action.act_window.view" id="act_sale_channel_listing_view_1">
<field name="sequence" eval="10"/>
<field name="view" ref="product_sale_channel_listing_tree"/>
<field name="act_window" ref="act_sale_channel_listing"/>
</record>
<record model="ir.action.act_window.view" id="act_sale_channel_listing_view_2">
<field name="sequence" eval="10"/>
<field name="view" ref="product_sale_channel_listing_form"/>
<field name="act_window" ref="act_sale_channel_listing"/>
</record>
<!-- Domai Tabs -->
<record model="ir.action.act_window.domain" id="act_sale_channel_listing_domain_active">
<field name="name">Active</field>
<field name="sequence" eval="10"/>
<field name="domain" eval="[('state', '=', 'active')]" pyson="1"/>
<field name="act_window" ref="act_sale_channel_listing"/>
</record>
<record model="ir.action.act_window.domain" id="act_sale_channel_listing_domain_disabled">
<field name="name">Disabled</field>
<field name="sequence" eval="20"/>
<field name="domain" eval="[('state', '=', 'disabled')]" pyson="1"/>
<field name="act_window" ref="act_sale_channel_listing"/>
</record>
<record model="ir.action.act_window.domain" id="act_sale_channel_listing_domain_all">
<field name="name">All</field>
<field name="sequence" eval="30"/>
<field name="act_window" ref="act_sale_channel_listing"/>
</record>
<record model="ir.ui.view" id="listing_add_start_form">
<field name="model">product.listing.add.start</field>
<field name="type">form</field>
<field name="name">listing_add_start_form</field>
</record>
<record model="ir.action.wizard" id="wizard_add_listing">
<field name="name">Add Listing</field>
<field name="wiz_name">product.listing.add</field>
<field name="model">product.product</field>
</record>
<!-- Template Listing -->
<record model="ir.ui.view" id="template_view_form">
<field name="model">product.template</field>
<field name="inherit" ref="product.template_view_form"/>
<field name="name">template_form</field>
</record>
<record model="ir.ui.view" id="template_sale_channel_listing_tree">
<field name="model">product.template.channel_listing</field>
<field name="type">tree</field>
<field name="name">template_channel_listing_tree</field>
</record>
</data>
</tryton>