-
Notifications
You must be signed in to change notification settings - Fork 0
/
hr_view.xml
executable file
·189 lines (145 loc) · 8.43 KB
/
hr_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
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
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<!-- Liste des pointages appellée depuis la fiche de l'employee -->
<record model="ir.actions.act_window" id="is_pointage_action2">
<field name="context">{'default_employee': active_id, 'search_default_employee': active_id}</field>
<field name="name">Pointages</field>
<field name="res_model">is.pointage</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
</record>
<!-- Liste des badges appellée depuis la fiche de l'employee -->
<record model="ir.actions.act_window" id="is_badge_action2">
<field name="context">{'default_employee': active_id, 'search_default_employee': active_id}</field>
<field name="name">Badges</field>
<field name="res_model">is.badge</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
</record>
<!--
<record id="is_action_employee" model="ir.actions.act_window">
<field name="name">Employees</field>
<field name="res_model">hr.employee</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
<field name="domain">[]</field>
<field name="context">{'default_employee': active_id, 'search_default_employee': active_id}</field>
<field name="view_id" eval="False"/>
<field name="search_view_id" ref="hr.view_employee_filter"/>
</record>
-->
<record id="is_view_employee_form" model="ir.ui.view">
<field name="name">is.hr.employee.form</field>
<field name="model">hr.employee</field>
<field name="inherit_id" ref="hr.view_employee_form"/>
<field name="arch" type="xml">
<field name="image_medium" position="before">
<div class="oe_right oe_button_box" style="width: 300px;" name="buttons">
<!-- Liste des icones : http://fortawesome.github.io/Font-Awesome/icons/ -->
<button class="oe_inline oe_stat_button" name="%(is_badge_action2)d" type="action" icon="fa-user">
<field string="Badge" name="is_badge_count" widget="statinfo" />
</button>
<button class="oe_inline oe_stat_button" name="%(is_pointage_action2)d" type="action" icon="fa-clock-o">
<field string="Pointages" name="is_pointage_count" widget="statinfo" />
</button>
<!--
<button class="oe_inline oe_stat_button" name="is_pointeuse.is_action_employee" type="action" icon="fa-flask">
<field string="action1" name="is_badge_count" widget="statinfo" />
</button>
<button class="oe_inline oe_stat_button" name="is_pointeuse.is_badge_action" type="action" icon="fa-flask">
<field string="action2" name="is_badge_count" widget="statinfo" />
</button>
<button class="oe_inline oe_stat_button" name="action_view_badge" type="object" icon="fa-flask">
<field string="object" name="is_badge_count" widget="statinfo" />
</button>
-->
</div>
</field>
<page string="Public Information" position="before">
<page string="Pointage">
<group>
<group string="Paramètrage">
<field name="is_matricule"/>
<field name="is_categorie"/>
<field name="is_interimaire"/>
</group>
<group string="Horaires">
<field name="is_jour1"/>
<field name="is_jour2"/>
<field name="is_jour3"/>
<field name="is_jour4"/>
<field name="is_jour5"/>
<field name="is_jour6"/>
<field name="is_jour7"/>
</group>
</group>
</page>
</page>
</field>
</record>
<record id="is_view_employee_tree" model="ir.ui.view">
<field name="name">is.hr.employee.tree</field>
<field name="model">hr.employee</field>
<field name="inherit_id" ref="hr.view_employee_tree"/>
<field name="arch" type="xml">
<field name="work_phone" position="replace">
<field name="is_matricule"/>
</field>
<field name="work_email" position="replace">
<field name="is_categorie"/>
</field>
<field name="department_id" position="after">
<field name="is_interimaire"/>
<field name="is_jour1" invisible="context.get('invisible_horaire', True)"/>
<field name="is_jour2" invisible="context.get('invisible_horaire', True)"/>
<field name="is_jour3" invisible="context.get('invisible_horaire', True)"/>
<field name="is_jour4" invisible="context.get('invisible_horaire', True)"/>
<field name="is_jour5" invisible="context.get('invisible_horaire', True)"/>
<field name="is_jour6" invisible="context.get('invisible_horairet', True)"/>
<field name="is_jour7" invisible="context.get('invisible_horaire', True)"/>
</field>
<field name="job_id" position="replace" />
<field name="parent_id" position="replace" />
</field>
</record>
<record id="is_view_employee_filter" model="ir.ui.view">
<field name="name">is_view_employee_filter</field>
<field name="model">hr.employee</field>
<field name="inherit_id" ref="hr.view_employee_filter"/>
<field name="arch" type="xml">
<field name="name" position="after">
<field name="is_matricule"/>
<field name="is_categorie"/>
<field name="is_interimaire"/>
</field>
<!-- Filtres pré-enregistrés -->
<group string="Group By" position="before">
<group string="Filtres">
<filter string="Employés" name="is_interimaire" domain="[('is_interimaire','!=',True)]" />
<filter string="Intérimaires" name="is_interimaire" domain="[('is_interimaire','=',True)]" />
</group>
</group>
<!-- Group by -->
<filter string="Manager" position="before">
<filter string="Catégorie" context="{'group_by': 'is_categorie'}"/>
<filter string="Intérimaire" context="{'group_by': 'is_interimaire'}"/>
</filter>
<!-- Filtres permettant d'afficher des colonnes -->
<group string="Group By" position="after">
<group string="Afficher les champs">
<filter string="Horaires" context="{'invisible_horaire': False}" />
</group>
</group>
</field>
</record>
<!-- Pour surcharger une action (ici changer l'ordre des vues), il suffit de mettre le même id que l'action d'origine (et son module en préfix) -->
<record id="hr.open_view_employee_list_my" model="ir.actions.act_window">
<field name="name">Employees test</field>
<field name="context">{}</field>
<field name="view_mode">tree,form</field>
</record>
<!-- Pour surcharger un menu (ici changer son action), il suffit de mettre le même id que le menu d'origine (et son module en préfix) -->
<!--<menuitem action="hr.open_view_employee_list_my" id="is_menu_open_view_employee_list_my" sequence="10" parent="hr.menu_hr_main"/>-->
</data>
</openerp>