5 <record id="view_evaluation_report_graph" model="ir.ui.view">
6 <field name="name">hr.holidays.graph</field>
7 <field name="model">hr.holidays</field>
8 <field name="arch" type="xml">
9 <graph string="Appraisal Analysis" type="pivot" stacked="True">
10 <field name="employee_id" type="row"/>
11 <field name="holiday_status_id" type="row"/>
12 <field name="date_from" type="col"/>
13 <field name="number_of_days" type="measure"/>
18 <record id="view_hr_holidays_filter" model="ir.ui.view">
19 <field name="name">hr.holidays.filter</field>
20 <field name="model">hr.holidays</field>
21 <field name="arch" type="xml">
22 <search string="Search Leave">
24 <filter domain="[('state','=','draft')]" string="To Confirm"/>
25 <filter domain="[('state','in',('confirm','validate1'))]" string="To Approve" name="approve"/>
26 <filter domain="[('state','=','validate')]" string="Validated" name="validated"/>
28 <filter string="New Mail" name="message_unread" domain="[('message_unread','=',True)]"/>
30 <filter string="Approved Leaves" name="validated" domain="[('state','=','validate')]"/>
32 <filter string="To Report in Payslip" name="gray" domain="[('payslip_status', '=', False)]" groups="base.group_hr_manager"/>
34 <filter name="year" string="Year" domain="[('holiday_status_id.active','=',True)]" help="Filters only on allocations and requests that belong to an holiday type that is 'active' (active field is True)"/>
36 <filter string="To Do" name="todo" domain="[('payslip_status', '=', False), ('holiday_status_id.active', '=', True)]"/>
38 <filter string="My Department Leaves" help="My Department Leaves" domain="[('department_id.manager_id','=',uid)]"/>
39 <field name="employee_id"/>
40 <field name="department_id"/>
41 <field name="holiday_status_id"/>
42 <group expand="0" string="Group By">
43 <filter name="group_name" string="Description" context="{'group_by':'name'}"/>
44 <filter name="group_employee" string="Employee" context="{'group_by':'employee_id'}"/>
45 <filter name="group_category" string="Category" context="{'group_by':'category_id'}"/>
46 <filter string="Manager" context="{'group_by':'manager_id'}"/>
47 <filter name="group_type" string="Type" context="{'group_by':'holiday_status_id'}"/>
49 <filter name="group_date_from" string="Start Month" context="{'group_by':'date_from:month'}"/>
55 <!-- Holidays: Leave Request -->
57 <record id="view_holiday_new_calendar" model="ir.ui.view">
58 <field name="name">Leave Request</field>
59 <field name="model">hr.holidays</field>
60 <field name="arch" type="xml">
61 <calendar string="Leave Request" color="employee_id"
62 date_start="date_from" date_stop="date_to"
63 quick_add="False" avatar_model="hr.employee">
64 <field name="employee_id"/>
65 <field name="holiday_status_id"/>
70 <!-- Holidays: Allocation Request -->
71 <record model="ir.ui.view" id="edit_holiday_new">
72 <field name="name">Leave Request</field>
73 <field name="model">hr.holidays</field>
74 <field name="arch" type="xml">
75 <form string="Leave Request">
76 <field name="can_reset" invisible="1"/>
77 <field name="type" invisible="1"/>
79 <button string="Confirm" name="confirm" states="draft" type="workflow" class="oe_highlight"/>
80 <button string="Approve" name="validate" states="confirm" type="workflow" groups="base.group_hr_user" class="oe_highlight"/>
81 <button string="Validate" name="second_validate" states="validate1" type="workflow" groups="base.group_hr_user" class="oe_highlight"/>
82 <button string="Refuse" name="refuse" states="confirm,validate,validate1" type="workflow" groups="base.group_hr_user"/>
83 <button string="Reset to Draft" name="reset" type="workflow"
84 attrs="{'invisible': ['|', ('can_reset', '=', False), ('state', 'not in', ['confirm', 'refuse'])]}"/>
85 <field name="state" widget="statusbar" statusbar_visible="draft,confirm,validate" statusbar_colors='{"confirm":"blue","validate1":"blue","refuse":"red"}'/>
90 <field name="name" attrs="{'readonly':[('state','!=','draft'),('state','!=','confirm')], 'required': [('type', '=', 'add')]}"/>
91 <field name="holiday_status_id" context="{'employee_id':employee_id}"/>
92 <label for="number_of_days_temp" string="Duration"/>
94 <group col="3" attrs="{'invisible': [('type', '=', 'add')]}">
95 <field name="date_from" nolabel="1" on_change="onchange_date_from(date_to, date_from)" attrs="{'required':[('type', '=', 'remove')]}" class="oe_inline"/><label string="-" class="oe_inline"/>
96 <field name="date_to" nolabel="1" on_change="onchange_date_to(date_to, date_from)" attrs="{'required':[('type', '=', 'remove')]}" class="oe_inline"/>
99 <field name="number_of_days_temp" class="oe_inline"/> days
104 <field name="holiday_type" on_change="onchange_type(holiday_type)" attrs="{'readonly':[('type', '=', 'remove'),('state','!=','draft')]}" string="Mode" groups="base.group_hr_user" context="{'employee_id':employee_id}" />
105 <field name="employee_id" attrs="{'required':[('holiday_type','=','employee')],'invisible':[('holiday_type','=','category')]}" on_change="onchange_employee(employee_id)" groups="base.group_hr_user"/>
106 <field name="category_id" attrs="{'required':[('holiday_type','=','category')], 'readonly': [('type', '=', 'remove'),('state','!=','draft'), ('state','!=','confirm')], 'invisible':[('holiday_type','=','employee')]}"/>
107 <field name="department_id" attrs="{'readonly':['|', ('type','=','add'),('holiday_type','=','category')],'invisible':[('holiday_type','=','category')]}" groups="base.group_hr_user"/>
108 <field name="payslip_status" groups="base.group_hr_manager" attrs="{'invisible':[('type','=','add')]}"/>
110 <field name="notes" nolabel="1" colspan="4" placeholder="Add a reason..." attrs="{'invisible': [('type', '=', 'remove')]}"/>
111 <div groups="base.group_hr_manager" attrs="{'invisible':[('type','=','add')]}">
112 <separator string="Comment by Manager"/>
113 <field name="report_note" placeholder="e.g. Report to the next month..."/>
117 <div class="oe_chatter">
118 <field name="message_follower_ids" widget="mail_followers"/>
119 <field name="message_ids" widget="mail_thread"/>
125 <record model="ir.ui.view" id="view_holiday_allocation_tree">
126 <field name="name">hr.holidays.allocation.tree</field>
127 <field name="model">hr.holidays</field>
128 <field name="arch" type="xml">
129 <tree colors="red:state == 'refuse';blue:state == 'draft';black:state in ('confirm','validate','validate1')" string="Allocation Requests"
130 fonts="bold: message_unread == True">
131 <field name="employee_id"/>
132 <field name="holiday_type"/>
133 <field name="category_id"/>
134 <field name="department_id" invisible="1"/>
135 <field name="holiday_status_id"/>
137 <field name="number_of_days" string="Allocated Days" sum="Remaining Days"/>
138 <field name="manager_id" invisible="1"/>
139 <field name="user_id" invisible="1"/>
140 <field name="date_from" invisible="1"/>
141 <field name="message_unread" invisible="1"/>
142 <field name="state"/>
146 <record model="ir.ui.view" id="view_holiday_allocation_tree_customize">
147 <field name="name">hr.holidays.allocation.tree.customize</field>
148 <field name="model">hr.holidays</field>
149 <field name="arch" type="xml">
150 <tree string="Allocation Requests" editable="top">
151 <field name="employee_id"/>
152 <field name="holiday_type"/>
153 <field name="holiday_status_id"/>
154 <field name="name" readonly="1"/>
155 <field name="date_from" required="1" on_change="onchange_date_from(date_to, date_from)"/>
156 <field name="date_to" required="1" on_change="onchange_date_to(date_to, date_from)"/>
157 <field name="number_of_days_temp" string="Allocated Days" sum="Remaining Days"/>
158 <field name="state"/>
159 <button name="toggle_payslip_status" field_name="payslip_status" type="object"
160 widget="toggle_button" options='{"active": "Reported in last payslips", "inactive": "To Report in Payslip"}' groups="base.group_hr_manager"/>
161 <field name="report_note" groups="base.group_hr_manager"/>
162 <field name="payslip_status" invisible="1"/>
167 <record model="ir.ui.view" id="view_holiday_simple">
168 <field name="name">hr.holidays.report_tree</field>
169 <field name="model">hr.holidays</field>
170 <field name="priority">20</field>
171 <field name="arch" type="xml">
172 <tree colors="red:state == 'refuse';blue:state == 'draft';black:state in ('confirm','validate','validate1')" string="Leaves Summary">
173 <field name="employee_id"/>
174 <field name="category_id" invisible="1"/>
175 <field name="department_id" invisible="1"/>
178 <field name="number_of_days" string="Number of Days" sum="Remaining Days"/>
179 <field name="date_from"/>
180 <field name="date_to"/>
181 <field name="holiday_status_id"/>
182 <field name="manager_id" invisible="1"/>
183 <field name="user_id" invisible="1"/>
184 <field name="state"/>
189 <record model="ir.ui.view" id="view_holiday_employee">
190 <field name="name">hr.holidays.report_employee_tree</field>
191 <field name="model">hr.holidays</field>
192 <field name="priority">21</field>
193 <field name="arch" type="xml">
194 <tree colors="red:state == 'refuse';blue:state == 'draft';black:state in ('confirm','validate','validate1')" string="Employee's Leave">
195 <field name="employee_id"/>
198 <field name="number_of_days" string="Number of Days" sum="Remaining Days"/>
199 <field name="date_from"/>
200 <field name="date_to"/>
201 <field name="holiday_status_id"/>
202 <field name="state"/>
203 <button name="toggle_payslip_status" field_name="payslip_status" type="object"
204 widget="toggle_button" options='{"active": "Reported in last payslips", "inactive": "To Report in Payslip"}' groups="base.group_hr_manager"/>
205 <field name="report_note"/>
206 <field name="payslip_status" invisible="1"/>
211 <record model="ir.ui.view" id="view_holiday">
212 <field name="name">hr.holidays.tree</field>
213 <field name="model">hr.holidays</field>
214 <field name="arch" type="xml">
215 <tree colors="red:state == 'refuse';blue:state == ' draft';black:state in ('confirm','validate','validate1')" string="Leave Requests"
216 fonts="bold: message_unread == True">
217 <field name="employee_id"/>
218 <field name="holiday_type" string="Mode" groups="base.group_no_one"/>
219 <field name="holiday_status_id"/>
221 <field name="date_from"/>
222 <field name="date_to"/>
223 <field name="number_of_days" string="Number of Days" sum="Remaining Days"/>
224 <field name="state"/>
225 <field name="payslip_status" invisible="1"/>
226 <button name="toggle_payslip_status" field_name="payslip_status" type="object"
227 widget="toggle_button" options='{"active": "Reported in last payslips", "inactive": "To Report in Payslip"}' groups="base.group_hr_manager"/>
228 <field name="category_id" invisible="1"/>
229 <field name="department_id" invisible="not context.get('set_visible',False)"/>
230 <field name="manager_id" invisible="1"/>
231 <field name="user_id" invisible="1"/>
232 <field name="message_unread" invisible="1"/>
237 <menuitem name="Leaves" parent="hr.menu_hr_root" id="menu_open_ask_holidays" sequence="20"/>
239 <record model="ir.actions.act_window" id="open_ask_holidays">
240 <field name="name">Leave Request</field>
241 <field name="res_model">hr.holidays</field>
242 <field name="view_type">form</field>
243 <field name="view_id" ref="edit_holiday_new"/>
244 <field name="context">{
245 'default_type': 'remove',
246 'search_default_my_leaves':1,
247 'needaction_menu_ref':
249 'hr_holidays.menu_open_company_allocation',
252 <field name="domain">[('type','=','remove'), ('employee_id.user_id','=', uid)]</field>
253 <field name="search_view_id" ref="view_hr_holidays_filter"/>
254 <field name="help" type="html">
255 <p class="oe_view_nocontent_create">
256 Click to create a new leave request.
258 Once you have recorded your leave request, it will be sent
259 to a manager for validation. Be sure to set the right leave
260 type (recuperation, legal holidays, sickness) and the exact
261 number of open days related to your leave.
266 <record model="ir.actions.act_window.view" id="action_open_ask_holidays_tree">
267 <field name="sequence" eval="2"/>
268 <field name="view_mode">tree</field>
269 <field name="view_id" ref="view_holiday"/>
270 <field name="act_window_id" ref="open_ask_holidays"/>
273 <record model="ir.actions.act_window.view" id="action_open_ask_holidays_form">
274 <field name="sequence" eval="3"/>
275 <field name="view_mode">form</field>
276 <field name="view_id" ref="edit_holiday_new"/>
277 <field name="act_window_id" ref="open_ask_holidays"/>
280 <record model="ir.actions.act_window.view" id="action_open_ask_holidays_calendar">
281 <field name="sequence" eval="1"/>
282 <field name="view_mode">calendar</field>
283 <field name="view_id" ref="view_holiday_new_calendar"/>
284 <field name="act_window_id" ref="open_ask_holidays"/>
287 <menuitem parent="menu_open_ask_holidays" id="menu_open_ask_holidays_new" action="open_ask_holidays"/>
289 <record model="ir.actions.act_window" id="request_approve_holidays">
290 <field name="name">Requests to Approve</field>
291 <field name="res_model">hr.holidays</field>
292 <field name="view_type">form</field>
293 <field name="context">{
294 'default_type': 'remove',
295 'search_default_approve':1,
296 'needaction_menu_ref':
298 'hr_holidays.menu_open_ask_holidays_new',
299 'hr_holidays.menu_open_company_allocation',
300 'hr_holidays.menu_open_employee_leave',
303 <field name="domain">[('type','=','remove')]</field>
304 <field name="view_id" ref="edit_holiday_new"/>
305 <field name="search_view_id" ref="view_hr_holidays_filter"/>
308 <record model="ir.actions.act_window.view" id="action_request_approve_holidays_tree">
309 <field name="sequence" eval="1"/>
310 <field name="view_mode">tree</field>
311 <field name="view_id" ref="view_holiday"/>
312 <field name="act_window_id" ref="request_approve_holidays"/>
315 <record model="ir.actions.act_window.view" id="action_request_approve_holidays_form">
316 <field name="sequence" eval="2"/>
317 <field name="view_mode">form</field>
318 <field name="view_id" ref="edit_holiday_new"/>
319 <field name="act_window_id" ref="request_approve_holidays"/>
322 <menuitem name="Leave Requests to Approve" parent="menu_open_ask_holidays" id="menu_request_approve_holidays" action="request_approve_holidays" groups="base.group_hr_user"/>
324 <record model="ir.actions.act_window" id="open_allocation_holidays">
325 <field name="name">Allocation Requests</field>
326 <field name="res_model">hr.holidays</field>
327 <field name="view_type">form</field>
328 <field name="context">{
329 'default_type':'add',
330 'search_default_my_leaves':1,
331 'needaction_menu_ref':
333 'hr_holidays.menu_open_company_allocation',
336 <field name="domain">[('type','=','add'), ('employee_id.user_id','=', uid)]</field>
337 <field name="view_id" ref="edit_holiday_new"/>
338 <field name="search_view_id" ref="view_hr_holidays_filter"/>
341 <record model="ir.actions.act_window.view" id="action_open_allocation_holidays_tree">
342 <field name="sequence" eval="1"/>
343 <field name="view_mode">tree</field>
344 <field name="view_id" ref="view_holiday_allocation_tree"/>
345 <field name="act_window_id" ref="open_allocation_holidays"/>
348 <record model="ir.actions.act_window.view" id="action_open_allocation_holidays_form">
349 <field name="sequence" eval="2"/>
350 <field name="view_mode">form</field>
351 <field name="view_id" ref="edit_holiday_new"/>
352 <field name="act_window_id" ref="open_allocation_holidays"/>
355 <menuitem parent="menu_open_ask_holidays" id="menu_open_allocation_holidays" action="open_allocation_holidays"/>
357 <record model="ir.actions.act_window" id="request_approve_allocation">
358 <field name="name">Allocation Requests to Approve</field>
359 <field name="res_model">hr.holidays</field>
360 <field name="view_type">form</field>
361 <field name="context">{
362 'default_type': 'add',
363 'search_default_approve':1,
364 'needaction_menu_ref':
366 'hr_holidays.menu_open_allocation_holidays',
367 'hr_holidays.menu_open_company_allocation'
370 <field name="domain">[('type','=','add')]</field>
371 <field name="view_id" ref="edit_holiday_new"/>
372 <field name="search_view_id" ref="view_hr_holidays_filter"/>
375 <record model="ir.actions.act_window.view" id="action_request_approve_allocation_tree">
376 <field name="sequence" eval="1"/>
377 <field name="view_mode">tree</field>
378 <field name="view_id" ref="view_holiday_allocation_tree"/>
379 <field name="act_window_id" ref="request_approve_allocation"/>
382 <record model="ir.actions.act_window.view" id="action_request_approve_allocation_form">
383 <field name="sequence" eval="2"/>
384 <field name="view_mode">form</field>
385 <field name="view_id" ref="edit_holiday_new"/>
386 <field name="act_window_id" ref="request_approve_allocation"/>
389 <menuitem parent="menu_open_ask_holidays" id="menu_request_approve_allocation" action="request_approve_allocation" groups="base.group_hr_manager"/>
391 <record model="ir.actions.act_window" id="open_company_allocation">
392 <field name="name">Leaves Summary</field>
393 <field name="res_model">hr.holidays</field>
394 <field name="view_type">form</field>
395 <field name="view_mode">tree,form</field>
396 <field name="view_id" eval="view_holiday_simple"/>
397 <field name="context">{
398 'search_default_group_type': 1,
399 'search_default_year': 1 ,
400 'needaction_menu_ref':
402 'hr_holidays.menu_open_ask_holidays_new',
403 'hr_holidays.menu_request_approve_holidays',
404 'hr_holidays.menu_open_allocation_holidays',
405 'hr_holidays.menu_request_approve_allocation',
406 'hr_holidays.menu_open_employee_leave',
409 <field name="domain">[('holiday_type','=','employee')]</field>
410 <field name="search_view_id" ref="view_hr_holidays_filter"/>
413 <menuitem name="Leaves Summary" parent="menu_open_ask_holidays" id="menu_open_company_allocation" action="open_company_allocation" sequence="40"/>
415 <record model="ir.actions.act_window" id="open_employee_leaves">
416 <field name="name">Employee's Leaves</field>
417 <field name="res_model">hr.holidays</field>
418 <field name="view_type">form</field>
419 <field name="view_mode">tree,form</field>
420 <field name="view_id" eval="view_holiday_employee"/>
421 <field name="context">{'default_type': 'remove', 'search_default_todo': 1}</field>
422 <field name="domain">[('type','=','remove')]</field>
423 <field name="search_view_id" ref="view_hr_holidays_filter"/>
426 <menuitem name="Employee's Leaves" parent="menu_open_ask_holidays" id="menu_open_employee_leave" groups="base.group_hr_manager,base.group_hr_user" action="open_employee_leaves" sequence="41"/>
428 <!-- Holidays status -->
429 <record id="view_holidays_status_filter" model="ir.ui.view">
430 <field name="name">hr.holidays.status.filter</field>
431 <field name="model">hr.holidays.status</field>
432 <field name="arch" type="xml">
433 <search string="Search Leave Type">
434 <field name="name" string="Leave Types"/>
435 <field name="categ_id"/>
440 <record model="ir.ui.view" id="edit_holiday_status_form">
441 <field name="name">hr.holidays.status.form</field>
442 <field name="model">hr.holidays.status</field>
443 <field name="arch" type="xml">
444 <form string="Leave Type">
447 <field name="categ_id"/>
450 <page string="Details">
452 <group name="selection" string="Validation">
453 <field name="double_validation"/>
454 <field name="limit"/>
456 <group name="second" string="Misc">
457 <field name="color_name"/>
458 <field name="active"/>
467 <record model="ir.ui.view" id="view_holiday_status_tree">
468 <field name="name">hr.holidays.status.tree</field>
469 <field name="model">hr.holidays.status</field>
470 <field name="arch" type="xml">
471 <tree string="Leave Type">
473 <field name="max_leaves"/>
474 <field name="leaves_taken"/>
475 <field name="remaining_leaves"/>
480 <record model="ir.ui.view" id="view_holiday_status_normal_tree">
481 <field name="name">hr.holidays.status.normal.tree</field>
482 <field name="model">hr.holidays.status</field>
483 <field name="priority">35</field>
484 <field name="arch" type="xml">
485 <tree string="Leave Type">
487 <field name="limit"/>
492 <record id="view_hr_holidays_status_search" model="ir.ui.view">
493 <field name="name">hr.holidays.status.search</field>
494 <field name="model">hr.holidays.status</field>
495 <field name="arch" type="xml">
496 <search string="Leave Type">
497 <field name="name" string="Leave Types"/>
498 <field name="categ_id"/>
503 <record id="open_view_holiday_status" model="ir.actions.act_window">
504 <field name="name">Leave Types</field>
505 <field name="type">ir.actions.act_window</field>
506 <field name="res_model">hr.holidays.status</field>
507 <field name="view_type">form</field>
508 <field name="view_mode">tree,form</field>
509 <field name="view_id" eval="view_holiday_status_normal_tree"/>
510 <field name="search_view_id" ref="view_hr_holidays_status_search"/>
513 <menuitem sequence="3" id="hr.menu_open_view_attendance_reason_config" parent="hr.menu_hr_configuration" name="Leaves" groups="base.group_hr_manager"/>
514 <menuitem name="Leave Types" action="open_view_holiday_status" id="menu_open_view_holiday_status" parent="hr.menu_hr_configuration_employees" sequence="4" groups="base.group_hr_manager"/>
516 <!-- Holiday on resource leave -->
517 <record id="resource_calendar_leave_form_inherit" model="ir.ui.view">
518 <field name="name">resource.calendar.leaves.form.inherit</field>
519 <field name="model">resource.calendar.leaves</field>
520 <field name="inherit_id" ref="resource.resource_calendar_leave_form"/>
521 <field name="arch" type="xml">
522 <field name="name" position="after">
523 <field name="holiday_id"/>
529 <record id="act_hr_employee_holiday_request" model="ir.actions.act_window">
530 <field name="name">Leaves</field>
531 <field name="type">ir.actions.act_window</field>
532 <field name="res_model">hr.holidays</field>
533 <field name="src_model">hr.employee</field>
534 <field name="view_type">form</field>
535 <field name="view_mode">tree,form</field>
536 <field name="context">{'search_default_employee_id': [active_id], 'default_employee_id': active_id}</field>
537 <field name="domain">[('type','=','remove')]</field>
538 <field name="view_id" eval="view_holiday"/>
541 <record id="act_hr_employee_holiday_request_approved" model="ir.actions.act_window">
542 <field name="name">Leaves to be reported in Payslip</field>
543 <field name="type">ir.actions.act_window</field>
544 <field name="res_model">hr.holidays</field>
545 <field name="src_model">hr.employee</field>
546 <field name="view_type">form</field>
547 <field name="view_mode">tree,form</field>
548 <field name="context">{'search_default_employee_id': [active_id], 'search_default_validated': True, 'search_default_gray': True}</field>
549 <field name="domain">[('date_from','>=', context_today().strftime("%Y-%m-1")), ('date_from','<', ((context_today() + relativedelta(months=1)).strftime('%Y-%m-1')) )]</field>
550 <field name="view_id" eval="view_holiday_allocation_tree_customize"/>
553 <!-- Assing leave -->
554 <record id="hr_holidays_leaves_assign_tree_view" model="ir.ui.view">
555 <field name="name">hr.employee.leave.tree</field>
556 <field name="model">hr.employee</field>
557 <field name="priority" eval="20"/>
558 <field name="arch" type="xml">
559 <tree string="Assign Leaves" editable="bottom">
560 <field name="name" string="Employee"/>
561 <field name="remaining_leaves" string="Remaining Legal Leaves"/>
566 <record model="ir.actions.act_window" id="hr_holidays_leaves_assign_legal">
567 <field name="name">Allocate Leaves for Employees</field>
568 <field name="type">ir.actions.act_window</field>
569 <field name="res_model">hr.employee</field>
570 <field name="view_type">form</field>
571 <field name="view_mode">tree,form</field>
572 <field name="view_id" ref="hr_holidays_leaves_assign_tree_view"/>
573 <field name="help" type="html">
575 You can assign remaining Legal Leaves for each employee, Odoo
576 will automatically create and validate allocation requests.
581 <!-- Hr employee inherit Legal Leaves -->
582 <record id="view_employee_form_leave_inherit" model="ir.ui.view">
583 <field name="name">hr.employee.leave.form.inherit</field>
584 <field name="model">hr.employee</field>
585 <field name="inherit_id" ref="hr.view_employee_form"/>
586 <field name="arch" type="xml">
587 <xpath expr="//group[@name='active_group']" position="before">
588 <group string="Leaves">
589 <label for="remaining_leaves"/>
591 <field name="remaining_leaves" class="oe_inline"/> days
595 <xpath expr="//div[@name='button_box']" position="inside">
596 <button name="%(act_hr_employee_holiday_request_approved)d"
598 class="oe_stat_button"
600 groups="base.group_hr_user">
601 <field name="approved_leaves_count" widget="statinfo"/>
603 <button name="%(act_hr_employee_holiday_request)d"
605 class="oe_stat_button"
607 groups="base.group_hr_user">
608 <field name="leaves_count" widget="statinfo"/>
614 <record model="ir.ui.view" id="hr_kanban_view_employees_kanban">
615 <field name="name">HR - Employees Kanban with leave status</field>
616 <field name="model">hr.employee</field>
617 <field name="inherit_id" ref="hr.hr_kanban_view_employees"/>
618 <field name="arch" type="xml">
619 <xpath expr="//templates" position="before">
620 <field name="current_leave_id"/>
621 <field name="current_leave_state"/>
622 <field name="leave_date_from"/>
623 <field name="leave_date_to"/>
625 <xpath expr="//li[@id='last_login']" position="inside">
626 <span t-if="record.current_leave_id.raw_value" style="font-size: 100%%"
627 t-att-class="record.current_leave_state.raw_value=='validate'?'oe_kanban_button oe_kanban_color_3':'oe_kanban_button oe_kanban_color_2'"
628 t-att-title="moment(record.leave_date_from.raw_value).format('ddd do MMM') + ' - ' + moment(record.leave_date_to.raw_value).format('ddd do MMM')">
629 <field name="current_leave_id"/>
636 id="act_hr_leave_request_to_meeting"
637 name="Leave Meetings"
638 src_model="hr.holidays"
639 res_model="calendar.event"
640 view_mode="tree,form,calendar,gantt"