views.xml
1.79 KB
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
<odoo>
<data>
<!-- explicit list view definition -->
<!--
<record model="ir.ui.view" id="my_module.list">
<field name="name">my_module list</field>
<field name="model">my_module.my_module</field>
<field name="arch" type="xml">
<tree>
<field name="name"/>
<field name="value"/>
<field name="value2"/>
</tree>
</field>
</record>
-->
<!-- actions opening views on models -->
<!--
<record model="ir.actions.act_window" id="my_module.action_window">
<field name="name">my_module window</field>
<field name="res_model">my_module.my_module</field>
<field name="view_mode">tree,form</field>
</record>
-->
<!-- server action to the one above -->
<!--
<record model="ir.actions.server" id="my_module.action_server">
<field name="name">my_module server</field>
<field name="model_id" ref="model_my_module_my_module"/>
<field name="state">code</field>
<field name="code">
action = {
"type": "ir.actions.act_window",
"view_mode": "tree,form",
"res_model": self._name,
}
</field>
</record>
-->
<!-- Top menu item -->
<!--
<menuitem name="my_module" id="my_module.menu_root"/>
-->
<!-- menu categories -->
<!--
<menuitem name="Menu 1" id="my_module.menu_1" parent="my_module.menu_root"/>
<menuitem name="Menu 2" id="my_module.menu_2" parent="my_module.menu_root"/>
-->
<!-- actions -->
<!--
<menuitem name="List" id="my_module.menu_1_list" parent="my_module.menu_1"
action="my_module.action_window"/>
<menuitem name="Server to list" id="my_module" parent="my_module.menu_2"
action="my_module.action_server"/>
-->
</data>
</odoo>