-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.xml
132 lines (125 loc) · 6.55 KB
/
index.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
<?xml version="1.0"?>
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<tryton>
<data>
<record model="res.group" id="group_elasticsearch_admin">
<field name="name">Elastic Search Administrator</field>
</record>
<record model="res.user-res.group" id="user_admin_group_elasticsearch_admin">
<field name="user" ref="res.user_admin"/>
<field name="group" ref="group_elasticsearch_admin"/>
</record>
<record model="res.user-res.group" id="user_trigger_group_elasticsearch_admin">
<field name="user" ref="res.user_trigger"/>
<field name="group" ref="group_elasticsearch_admin"/>
</record>
<!-- The user which runs the crons for backlog index -->
<record model="res.user" id="user_update_index">
<field name="login">user_elasticsearch_update_index</field>
<field name="name">Cron Elastic Search Index</field>
<field name="signature"></field>
<field name="active" eval="False"/>
</record>
<record model="res.user-res.group" id="user_cron_group_elasticsearch_admin">
<field name="user" ref="user_update_index"/>
<field name="group" ref="group_elasticsearch_admin"/>
</record>
<menuitem parent="ir.menu_administration" id="menu_elastic_search"
name="Elastic Search"/>
<record model="ir.ui.view" id="document_type_form_view">
<field name="model">elasticsearch.document.type</field>
<field name="type">form</field>
<field name="name">document_type_form</field>
</record>
<record model="ir.ui.view" id="document_type_list_view">
<field name="model">elasticsearch.document.type</field>
<field name="type">tree</field>
<field name="name">document_type_list</field>
</record>
<record model="ir.action.act_window" id="act_document_type_form">
<field name="name">Document Types</field>
<field name="res_model">elasticsearch.document.type</field>
</record>
<record model="ir.action.act_window.view" id="act_document_type_form_view1">
<field name="sequence" eval="10"/>
<field name="view" ref="document_type_list_view"/>
<field name="act_window" ref="act_document_type_form"/>
</record>
<record model="ir.action.act_window.view" id="act_document_type_form_view2">
<field name="sequence" eval="20"/>
<field name="view" ref="document_type_form_view"/>
<field name="act_window" ref="act_document_type_form"/>
</record>
<menuitem parent="menu_elastic_search"
action="act_document_type_form" id="menu_document_type_form"/>
<record model="ir.ui.view" id="index_backlog_form_view">
<field name="model">elasticsearch.index_backlog</field>
<field name="type">form</field>
<field name="name">index_backlog_form</field>
</record>
<record model="ir.ui.view" id="index_backlog_list_view">
<field name="model">elasticsearch.index_backlog</field>
<field name="type">tree</field>
<field name="name">index_backlog_list</field>
</record>
<record model="ir.action.act_window" id="act_index_backlog_form">
<field name="name">Index Backlog</field>
<field name="res_model">elasticsearch.index_backlog</field>
</record>
<record model="ir.action.act_window.view" id="act_index_backlog_form_view1">
<field name="sequence" eval="10"/>
<field name="view" ref="index_backlog_list_view"/>
<field name="act_window" ref="act_index_backlog_form"/>
</record>
<record model="ir.action.act_window.view" id="act_index_backlog_form_view2">
<field name="sequence" eval="20"/>
<field name="view" ref="index_backlog_form_view"/>
<field name="act_window" ref="act_index_backlog_form"/>
</record>
<menuitem parent="menu_elastic_search"
action="act_index_backlog_form" id="menu_index_backlog_form"/>
<record model="ir.cron" id="cron_update_index">
<field name="name">Elastic Search Index</field>
<field name="request_user" ref="res.user_admin"/>
<field name="user" ref="user_update_index"/>
<field name="active" eval="False"/>
<field name="interval_number">1</field>
<field name="interval_type">minutes</field>
<field name="number_calls">-1</field>
<field name="repeat_missed" eval="False"/>
<field name="model">elasticsearch.index_backlog</field>
<field name="function">update_index</field>
</record>
<record model="ir.model.access" id="access_backlog_group_es_admin">
<field name="model" search="[('model', '=', 'elasticsearch.index_backlog')]"/>
<field name="group" ref="group_elasticsearch_admin"/>
<field name="perm_read" eval="True"/>
<field name="perm_write" eval="True"/>
<field name="perm_create" eval="True"/>
<field name="perm_delete" eval="True"/>
</record>
<record model="ir.model.access" id="access_document_type_group_es_admin">
<field name="model" search="[('model', '=', 'elasticsearch.document.type')]"/>
<field name="group" ref="group_elasticsearch_admin"/>
<field name="perm_read" eval="True"/>
<field name="perm_write" eval="True"/>
<field name="perm_create" eval="True"/>
<field name="perm_delete" eval="True"/>
</record>
<record model="ir.model.access" id="access_backlog_group_es_user">
<field name="model" search="[('model', '=', 'elasticsearch.index_backlog')]"/>
<field name="perm_read" eval="True"/>
<field name="perm_write" eval="True"/>
<field name="perm_create" eval="True"/>
<field name="perm_delete" eval="True"/>
</record>
<record model="ir.model.access" id="access_document_type_group_es_user">
<field name="model" search="[('model', '=', 'elasticsearch.document.type')]"/>
<field name="perm_read" eval="False"/>
<field name="perm_write" eval="False"/>
<field name="perm_create" eval="False"/>
<field name="perm_delete" eval="False"/>
</record>
</data>
</tryton>