-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathtree.xml
168 lines (142 loc) · 6.69 KB
/
tree.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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
<?xml version="1.0" encoding="UTF-8"?>
<!--
This file is part of Tryton & Nereid. The COPYRIGHT file at the
top level of this repository contains the full copyright notices
and license terms.
-->
<tryton>
<data>
<record model="ir.ui.view" id="product_tree_node_view_form">
<field name="model">product.product</field>
<field name="inherit" ref="product.product_view_form"/>
<field name="name">product_form</field>
</record>
<!--Tree Node-->
<record model="ir.ui.view" id="tree_node_view_list">
<field name="model">product.tree_node</field>
<field name="type">tree</field>
<field name="priority">10</field>
<field name="name">tree_node_list</field>
</record>
<record model="ir.ui.view" id="tree_node_view_tree">
<field name="model">product.tree_node</field>
<field name="type">tree</field>
<field name="priority">20</field>
<field name="field_childs">children</field>
<field name="name">tree_node_tree</field>
</record>
<record model="ir.ui.view" id="tree_node_view_form">
<field name="model">product.tree_node</field>
<field name="type">form</field>
<field name="name">tree_node_form</field>
</record>
<record model="ir.translation" id="product_treenode_recursion_error">
<field name="name">product.tree_node</field>
<field name="lang">en_US</field>
<field name="type">error</field>
<field name="src">recursion_error</field>
<field name="value">Recursion Error: Tree node "%(rec_name)s" with parent "%(parent_rec_name)s" was configured as ancestor of itself.</field>
<field name="module">nereid_catalog</field>
<field name="fuzzy" eval="False"/>
</record>
<record model="ir.action.act_window" id="act_tree_node_tree">
<field name="name">Tree Nodes</field>
<field name="res_model">product.tree_node</field>
<field name="domain">[('parent', '=', None)]</field>
</record>
<record model="ir.action.act_window.view" id="act_tree_node_tree_view1">
<field name="sequence" eval="10"/>
<field name="view" ref="tree_node_view_tree"/>
<field name="act_window" ref="act_tree_node_tree"/>
</record>
<record model="ir.action.act_window.view" id="act_tree_node_tree_view2">
<field name="sequence" eval="20"/>
<field name="view" ref="tree_node_view_form"/>
<field name="act_window" ref="act_tree_node_tree"/>
</record>
<menuitem parent="product.menu_main_product" sequence="4"
action="act_tree_node_tree" id="menu_tree_node_tree"/>
<record model="ir.action.act_window" id="act_tree_node_list">
<field name="name">Tree Nodes</field>
<field name="res_model">product.tree_node</field>
<field name="context">{'active_test': False}</field>
</record>
<record model="ir.action.act_window.domain" id="action_tree_node_view_domain_active">
<field name="name">Active</field>
<field name="sequence" eval="10"/>
<field name="domain">[('active', '=', True)]</field>
<field name="act_window" ref="act_tree_node_list"/>
</record>
<record model="ir.action.act_window.domain" id="action_tree_node_view_domain_disabled">
<field name="name">Disabled</field>
<field name="sequence" eval="10"/>
<field name="domain">[('active', '=', False)]</field>
<field name="act_window" ref="act_tree_node_list"/>
</record>
<record model="ir.action.act_window.view" id="act_tree_node_list_view1">
<field name="sequence" eval="10"/>
<field name="view" ref="tree_node_view_list"/>
<field name="act_window" ref="act_tree_node_list"/>
</record>
<record model="ir.action.act_window.view" id="act_tree_node_list_view2">
<field name="sequence" eval="20"/>
<field name="view" ref="tree_node_view_form"/>
<field name="act_window" ref="act_tree_node_list"/>
</record>
<menuitem parent="menu_tree_node_tree" sequence="2"
action="act_tree_node_list" id="menu_tree_node_list"/>
<record model="ir.action.act_window" id="act_product_by_tree_node">
<field name="name">Products By Tree Node</field>
<field name="res_model">product.product</field>
<field name="domain">[('nodes.node', 'in', Eval('active_ids'))]</field>
</record>
<record model="ir.action.keyword" id="act_product_by_tree_node_keyword1">
<field name="keyword">form_relate</field>
<field name="model">product.tree_node,-1</field>
<field name="action" ref="act_product_by_tree_node"/>
</record>
<record model="ir.action.act_window.view"
id="act_product_by_tree_node_view1">
<field name="sequence" eval="10"/>
<field name="view" ref="product.product_view_tree"/>
<field name="act_window" ref="act_product_by_tree_node"/>
</record>
<record model="ir.action.act_window.view"
id="act_product_by_tree_node_view2">
<field name="sequence" eval="20"/>
<field name="view" ref="product.product_view_form"/>
<field name="act_window" ref="act_product_by_tree_node"/>
</record>
<record id="inherit_nereid_website_product" model="ir.ui.view">
<field name="model">nereid.website</field>
<field name="inherit" ref="nereid.website_view_form"/>
<field name="name">website_view_form</field>
</record>
<record model="ir.ui.view" id="product_node_view_list">
<field name="model">product.product-product.tree_node</field>
<field name="type">tree</field>
<field name="name">product_node_list</field>
</record>
<record model="ir.action.act_window" id="act_rearrange_products">
<field name="name">Rearrange Products</field>
<field name="res_model">product.product-product.tree_node</field>
<field name="domain">[('node', '=', Eval('active_id'))]</field>
</record>
<record model="ir.action.keyword" id="act_rearrange_products_keyword1">
<field name="keyword">form_relate</field>
<field name="model">product.tree_node,-1</field>
<field name="action" ref="act_rearrange_products"/>
</record>
<record model="ir.ui.view" id="product_node_view_tree">
<field name="model">product.product-product.tree_node</field>
<field name="type">tree</field>
<field name="name">product_node_tree</field>
</record>
<record model="ir.action.act_window.view"
id="act_rearrange_products_view">
<field name="sequence" eval="10"/>
<field name="view" ref="product_node_view_tree"/>
<field name="act_window" ref="act_rearrange_products"/>
</record>
</data>
</tryton>