-
Notifications
You must be signed in to change notification settings - Fork 0
/
user_view.xml
109 lines (88 loc) · 3.99 KB
/
user_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
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
<?xml version="1.0"?>
<tryton>
<data>
<!-- User View -->
<record model="ir.ui.view" id="user_view_form">
<field name="model">user.view</field>
<field name="type">form</field>
<field name="name">user_view_form</field>
</record>
<record model="ir.ui.view" id="user_view_list">
<field name="model">user.view</field>
<field name="type">tree</field>
<field name="name">user_view_list</field>
</record>
<!-- User View Field -->
<record model="ir.ui.view" id="user_view_field_form">
<field name="model">user.view.field</field>
<field name="type">form</field>
<field name="name">user_view_field_form</field>
</record>
<record model="ir.ui.view" id="user_view_field_list">
<field name="model">user.view.field</field>
<field name="type">tree</field>
<field name="name">user_view_field_list</field>
</record>
<!-- Actions User View View-->
<record model="ir.action.act_window" id="act_user_view_list">
<field name="name">User View</field>
<field name="res_model">user.view</field>
</record>
<record model="ir.action.act_window.view" id="act_user_view_list_view">
<field name="sequence" eval="10"/>
<field name="view" ref="user_view_list"/>
<field name="act_window" ref="act_user_view_list"/>
</record>
<record model="ir.action.act_window.view" id="act_user_view_list_view_form">
<field name="sequence" eval="20"/>
<field name="view" ref="user_view_form"/>
<field name="act_window" ref="act_user_view_list"/>
</record>
<!-- Res user view -->
<record model="ir.ui.view" id="user_view_user_view_form">
<field name="model">res.user</field>
<field name="inherit" ref="res.user_view_form"/>
<field name="name">user_form</field>
</record>
<record model="ir.ui.view" id="user_view_user_view_form_preferences">
<field name="model">res.user</field>
<field name="inherit" ref="res.user_view_form_preferences"/>
<field name="name">user_form_preferences</field>
</record>
<!-- Menu User View -->
<menuitem parent="ir.menu_ui" name="User Views" id="user_view_main_menu"/>
<menuitem name="User Views"
action="act_user_view_list"
id="user_view_menu"
parent="user_view_main_menu" sequence="10"/>
<!-- Groups -->
<record model="res.group" id="view_manager_active">
<field name="name">View Manager Active </field>
</record>
<record model="res.group" id="view_manager_editor">
<field name="name">View Manager Editor</field>
</record>
<record model="res.group" id="view_manager_global">
<field name="name">View Manager Global</field>
</record>
<record model="res.group" id="view_manager_add_fields">
<field name="name">View Manager Add Fields</field>
</record>
<record model="res.user-res.group" id="user_admin_view_manager_active">
<field name="user" ref="res.user_admin"/>
<field name="group" ref="view_manager_active"/>
</record>
<record model="res.user-res.group" id="user_admin_view_manager_editor">
<field name="user" ref="res.user_admin"/>
<field name="group" ref="view_manager_editor"/>
</record>
<record model="res.user-res.group" id="user_admin_view_manager_global">
<field name="user" ref="res.user_admin"/>
<field name="group" ref="view_manager_global"/>
</record>
<record model="res.user-res.group" id="user_admin_view_manager_add_fields">
<field name="user" ref="res.user_admin"/>
<field name="group" ref="view_manager_add_fields"/>
</record>
</data>
</tryton>