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="My Requests" name="my_leaves" domain="[('employee_id.user_id','=', uid)]" help="My Leave Requests"/>
38 <filter string="To Do" name="todo" domain="[('payslip_status', '=', False), ('holiday_status_id.active', '=', True)]"/>
40 <filter string="My Department Leaves" help="My Department Leaves" domain="[('department_id.manager_id','=',uid)]"/>
41 <field name="employee_id"/>
42 <field name="department_id"/>
43 <field name="holiday_status_id"/>
44 <group expand="0" string="Group By">
45 <filter name="group_name" string="Description" context="{'group_by':'name'}"/>
46 <filter name="group_employee" string="Employee" context="{'group_by':'employee_id'}"/>
47 <filter name="group_category" string="Category" context="{'group_by':'category_id'}"/>
48 <filter string="Manager" context="{'group_by':'manager_id'}"/>
49 <filter name="group_type" string="Type" context="{'group_by':'holiday_status_id'}"/>
51 <filter name="group_date_from" string="Start Month" context="{'group_by':'date_from:month'}"/>
57 <!-- Holidays: Leave Request -->
59 <record id="view_holiday_new_calendar" model="ir.ui.view">
60 <field name="name">Leave Request</field>
61 <field name="model">hr.holidays</field>
62 <field name="arch" type="xml">
63 <calendar string="Leave Request" color="employee_id"
64 date_start="date_from" date_stop="date_to"
65 quick_add="False" avatar_model="hr.employee">
66 <field name="employee_id"/>
67 <field name="holiday_status_id"/>
72 <!-- Holidays: Allocation Request -->
73 <record model="ir.ui.view" id="edit_holiday_new">
74 <field name="name">Leave Request</field>
75 <field name="model">hr.holidays</field>
76 <field name="arch" type="xml">
77 <form string="Leave Request">
78 <field name="can_reset" invisible="1"/>
79 <field name="type" invisible="1"/>
81 <button string="Confirm" name="confirm" states="draft" type="workflow" class="oe_highlight"/>
82 <button string="Approve" name="validate" states="confirm" type="workflow" groups="base.group_hr_user" class="oe_highlight"/>
83 <button string="Validate" name="second_validate" states="validate1" type="workflow" groups="base.group_hr_user" class="oe_highlight"/>
84 <button string="Refuse" name="refuse" states="confirm,validate,validate1" type="workflow" groups="base.group_hr_user"/>
85 <button string="Reset to Draft" name="reset" type="workflow"
86 attrs="{'invisible': ['|', ('can_reset', '=', False), ('state', 'not in', ['confirm', 'refuse'])]}"/>
87 <field name="state" widget="statusbar" statusbar_visible="draft,confirm,validate" statusbar_colors='{"confirm":"blue","validate1":"blue","refuse":"red"}'/>
92 <field name="name" attrs="{'readonly':[('state','!=','draft'),('state','!=','confirm')], 'required': [('type', '=', 'add')]}"/>
93 <field name="holiday_status_id" context="{'employee_id':employee_id}"/>
94 <label for="number_of_days_temp" string="Duration"/>
96 <group col="3" attrs="{'invisible': [('type', '=', 'add')]}">
97 <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"/>
98 <field name="date_to" nolabel="1" on_change="onchange_date_to(date_to, date_from)" attrs="{'required':[('type', '=', 'remove')]}" class="oe_inline"/>
101 <field name="number_of_days_temp" class="oe_inline"/> days
106 <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}" />
107 <field name="employee_id" attrs="{'required':[('holiday_type','=','employee')],'invisible':[('holiday_type','=','category')]}" on_change="onchange_employee(employee_id)" groups="base.group_hr_user"/>
108 <field name="category_id" attrs="{'required':[('holiday_type','=','category')], 'readonly': [('type', '=', 'remove'),('state','!=','draft'), ('state','!=','confirm')], 'invisible':[('holiday_type','=','employee')]}"/>
109 <field name="department_id" attrs="{'readonly':['|', ('type','=','add'),('holiday_type','=','category')],'invisible':[('holiday_type','=','category')]}" groups="base.group_hr_user"/>
110 <field name="payslip_status" groups="base.group_hr_manager" attrs="{'invisible':[('type','=','add')]}"/>
112 <field name="notes" nolabel="1" colspan="4" placeholder="Add a reason..." attrs="{'invisible': [('type', '=', 'remove')]}"/>
113 <div groups="base.group_hr_manager" attrs="{'invisible':[('type','=','add')]}">
114 <separator string="Comment by Manager"/>
115 <field name="report_note" placeholder="e.g. Report to the next month..."/>
119 <div class="oe_chatter">
120 <field name="message_follower_ids" widget="mail_followers"/>
121 <field name="message_ids" widget="mail_thread"/>
127 <record model="ir.ui.view" id="view_holiday_allocation_tree">
128 <field name="name">hr.holidays.allocation.tree</field>
129 <field name="model">hr.holidays</field>
130 <field name="arch" type="xml">
131 <tree colors="red:state == 'refuse';blue:state == 'draft';black:state in ('confirm','validate','validate1')" string="Allocation Requests"
132 fonts="bold: message_unread == True">
133 <field name="employee_id"/>
134 <field name="holiday_type"/>
135 <field name="category_id"/>
136 <field name="department_id" invisible="1"/>
137 <field name="holiday_status_id"/>
139 <field name="number_of_days" string="Allocated Days" sum="Remaining Days"/>
140 <field name="manager_id" invisible="1"/>
141 <field name="user_id" invisible="1"/>
142 <field name="date_from" invisible="1"/>
143 <field name="message_unread" invisible="1"/>
144 <field name="state"/>
148 <record model="ir.ui.view" id="view_holiday_allocation_tree_customize">
149 <field name="name">hr.holidays.allocation.tree.customize</field>
150 <field name="model">hr.holidays</field>
151 <field name="arch" type="xml">
152 <tree string="Allocation Requests" editable="top">
153 <field name="employee_id"/>
154 <field name="holiday_type"/>
155 <field name="holiday_status_id"/>
156 <field name="name" readonly="1"/>
157 <field name="date_from" required="1" on_change="onchange_date_from(date_to, date_from)"/>
158 <field name="date_to" required="1" on_change="onchange_date_to(date_to, date_from)"/>
159 <field name="number_of_days_temp" string="Allocated Days" sum="Remaining Days"/>
160 <field name="state"/>
161 <button name="toggle_payslip_status" field_name="payslip_status" type="object"
162 widget="toggle_button" options='{"active": "Reported in last payslips", "inactive": "To Report in Payslip"}' groups="base.group_hr_manager"/>
163 <field name="report_note" groups="base.group_hr_manager"/>
164 <field name="payslip_status" invisible="1"/>
169 <record model="ir.ui.view" id="view_holiday_simple">
170 <field name="name">hr.holidays.report_tree</field>
171 <field name="model">hr.holidays</field>
172 <field name="priority">20</field>
173 <field name="arch" type="xml">
174 <tree colors="red:state == 'refuse';blue:state == 'draft';black:state in ('confirm','validate','validate1')" string="Leaves Summary">
175 <field name="employee_id"/>
176 <field name="category_id" invisible="1"/>
177 <field name="department_id" invisible="1"/>
180 <field name="number_of_days" string="Number of Days" sum="Remaining Days"/>
181 <field name="date_from"/>
182 <field name="date_to"/>
183 <field name="holiday_status_id"/>
184 <field name="manager_id" invisible="1"/>
185 <field name="user_id" invisible="1"/>
186 <field name="state"/>
191 <record model="ir.ui.view" id="view_holiday_employee">
192 <field name="name">hr.holidays.report_employee_tree</field>
193 <field name="model">hr.holidays</field>
194 <field name="priority">21</field>
195 <field name="arch" type="xml">
196 <tree colors="red:state == 'refuse';blue:state == 'draft';black:state in ('confirm','validate','validate1')" string="Employee's Leave">
197 <field name="employee_id"/>
200 <field name="number_of_days" string="Number of Days" sum="Remaining Days"/>
201 <field name="date_from"/>
202 <field name="date_to"/>
203 <field name="holiday_status_id"/>
204 <field name="state"/>
205 <button name="toggle_payslip_status" field_name="payslip_status" type="object"
206 widget="toggle_button" options='{"active": "Reported in last payslips", "inactive": "To Report in Payslip"}' groups="base.group_hr_manager"/>
207 <field name="report_note"/>
208 <field name="payslip_status" invisible="1"/>
213 <record model="ir.ui.view" id="view_holiday">
214 <field name="name">hr.holidays.tree</field>
215 <field name="model">hr.holidays</field>
216 <field name="arch" type="xml">
217 <tree colors="red:state == 'refuse';blue:state == ' draft';black:state in ('confirm','validate','validate1')" string="Leave Requests"
218 fonts="bold: message_unread == True">
219 <field name="employee_id"/>
220 <field name="holiday_type" string="Mode" groups="base.group_no_one"/>
221 <field name="holiday_status_id"/>
223 <field name="date_from"/>
224 <field name="date_to"/>
225 <field name="number_of_days" string="Number of Days" sum="Remaining Days"/>
226 <field name="state"/>
227 <field name="payslip_status" invisible="1"/>
228 <button name="toggle_payslip_status" field_name="payslip_status" type="object"
229 widget="toggle_button" options='{"active": "Reported in last payslips", "inactive": "To Report in Payslip"}' groups="base.group_hr_manager"/>
230 <field name="category_id" invisible="1"/>
231 <field name="department_id" invisible="not context.get('set_visible',False)"/>
232 <field name="manager_id" invisible="1"/>
233 <field name="user_id" invisible="1"/>
234 <field name="message_unread" invisible="1"/>
239 <menuitem name="Leaves" parent="hr.menu_hr_root" id="menu_open_ask_holidays" sequence="20"/>
241 <record model="ir.actions.act_window" id="open_ask_holidays">
242 <field name="name">Leave Request</field>
243 <field name="res_model">hr.holidays</field>
244 <field name="view_type">form</field>
245 <field name="view_id" ref="edit_holiday_new"/>
246 <field name="context">{
247 'default_type': 'remove',
248 'search_default_my_leaves':1,
249 'needaction_menu_ref':
251 'hr_holidays.menu_open_company_allocation',
254 <field name="domain">[('type','=','remove'), ('employee_id.user_id','=', uid)]</field>
255 <field name="search_view_id" ref="view_hr_holidays_filter"/>
256 <field name="help" type="html">
257 <p class="oe_view_nocontent_create">
258 Click to create a new leave request.
260 Once you have recorded your leave request, it will be sent
261 to a manager for validation. Be sure to set the right leave
262 type (recuperation, legal holidays, sickness) and the exact
263 number of open days related to your leave.
268 <record model="ir.actions.act_window.view" id="action_open_ask_holidays_tree">
269 <field name="sequence" eval="2"/>
270 <field name="view_mode">tree</field>
271 <field name="view_id" ref="view_holiday"/>
272 <field name="act_window_id" ref="open_ask_holidays"/>
275 <record model="ir.actions.act_window.view" id="action_open_ask_holidays_form">
276 <field name="sequence" eval="3"/>
277 <field name="view_mode">form</field>
278 <field name="view_id" ref="edit_holiday_new"/>
279 <field name="act_window_id" ref="open_ask_holidays"/>
282 <record model="ir.actions.act_window.view" id="action_open_ask_holidays_calendar">
283 <field name="sequence" eval="1"/>
284 <field name="view_mode">calendar</field>
285 <field name="view_id" ref="view_holiday_new_calendar"/>
286 <field name="act_window_id" ref="open_ask_holidays"/>
289 <menuitem parent="menu_open_ask_holidays" id="menu_open_ask_holidays_new" action="open_ask_holidays"/>
291 <record model="ir.actions.act_window" id="request_approve_holidays">
292 <field name="name">Requests to Approve</field>
293 <field name="res_model">hr.holidays</field>
294 <field name="view_type">form</field>
295 <field name="context">{
296 'default_type': 'remove',
297 'search_default_approve':1,
298 'needaction_menu_ref':
300 'hr_holidays.menu_open_ask_holidays_new',
301 'hr_holidays.menu_open_company_allocation',
302 'hr_holidays.menu_open_employee_leave',
305 <field name="domain">[('type','=','remove')]</field>
306 <field name="view_id" ref="edit_holiday_new"/>
307 <field name="search_view_id" ref="view_hr_holidays_filter"/>
310 <record model="ir.actions.act_window.view" id="action_request_approve_holidays_tree">
311 <field name="sequence" eval="1"/>
312 <field name="view_mode">tree</field>
313 <field name="view_id" ref="view_holiday"/>
314 <field name="act_window_id" ref="request_approve_holidays"/>
317 <record model="ir.actions.act_window.view" id="action_request_approve_holidays_form">
318 <field name="sequence" eval="2"/>
319 <field name="view_mode">form</field>
320 <field name="view_id" ref="edit_holiday_new"/>
321 <field name="act_window_id" ref="request_approve_holidays"/>
324 <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"/>
326 <record model="ir.actions.act_window" id="open_allocation_holidays">
327 <field name="name">Allocation Requests</field>
328 <field name="res_model">hr.holidays</field>
329 <field name="view_type">form</field>
330 <field name="context">{
331 'default_type':'add',
332 'search_default_my_leaves':1,
333 'needaction_menu_ref':
335 'hr_holidays.menu_open_company_allocation',
338 <field name="domain">[('type','=','add'), ('employee_id.user_id','=', uid)]</field>
339 <field name="view_id" ref="edit_holiday_new"/>
340 <field name="search_view_id" ref="view_hr_holidays_filter"/>
343 <record model="ir.actions.act_window.view" id="action_open_allocation_holidays_tree">
344 <field name="sequence" eval="1"/>
345 <field name="view_mode">tree</field>
346 <field name="view_id" ref="view_holiday_allocation_tree"/>
347 <field name="act_window_id" ref="open_allocation_holidays"/>
350 <record model="ir.actions.act_window.view" id="action_open_allocation_holidays_form">
351 <field name="sequence" eval="2"/>
352 <field name="view_mode">form</field>
353 <field name="view_id" ref="edit_holiday_new"/>
354 <field name="act_window_id" ref="open_allocation_holidays"/>
357 <menuitem parent="menu_open_ask_holidays" id="menu_open_allocation_holidays" action="open_allocation_holidays"/>
359 <record model="ir.actions.act_window" id="request_approve_allocation">
360 <field name="name">Allocation Requests to Approve</field>
361 <field name="res_model">hr.holidays</field>
362 <field name="view_type">form</field>
363 <field name="context">{
364 'default_type': 'add',
365 'search_default_approve':1,
366 'needaction_menu_ref':
368 'hr_holidays.menu_open_allocation_holidays',
369 'hr_holidays.menu_open_company_allocation'
372 <field name="domain">[('type','=','add')]</field>
373 <field name="view_id" ref="edit_holiday_new"/>
374 <field name="search_view_id" ref="view_hr_holidays_filter"/>
377 <record model="ir.actions.act_window.view" id="action_request_approve_allocation_tree">
378 <field name="sequence" eval="1"/>
379 <field name="view_mode">tree</field>
380 <field name="view_id" ref="view_holiday_allocation_tree"/>
381 <field name="act_window_id" ref="request_approve_allocation"/>
384 <record model="ir.actions.act_window.view" id="action_request_approve_allocation_form">
385 <field name="sequence" eval="2"/>
386 <field name="view_mode">form</field>
387 <field name="view_id" ref="edit_holiday_new"/>
388 <field name="act_window_id" ref="request_approve_allocation"/>
391 <menuitem parent="menu_open_ask_holidays" id="menu_request_approve_allocation" action="request_approve_allocation" groups="base.group_hr_manager"/>
393 <record model="ir.actions.act_window" id="open_company_allocation">
394 <field name="name">Leaves Summary</field>
395 <field name="res_model">hr.holidays</field>
396 <field name="view_type">form</field>
397 <field name="view_mode">tree,form</field>
398 <field name="view_id" eval="view_holiday_simple"/>
399 <field name="context">{
400 'search_default_group_type': 1,
401 'search_default_year': 1 ,
402 'needaction_menu_ref':
404 'hr_holidays.menu_open_ask_holidays_new',
405 'hr_holidays.menu_request_approve_holidays',
406 'hr_holidays.menu_open_allocation_holidays',
407 'hr_holidays.menu_request_approve_allocation',
408 'hr_holidays.menu_open_employee_leave',
411 <field name="domain">[('holiday_type','=','employee')]</field>
412 <field name="search_view_id" ref="view_hr_holidays_filter"/>
415 <menuitem name="Leaves Summary" parent="menu_open_ask_holidays" id="menu_open_company_allocation" action="open_company_allocation" sequence="40"/>
417 <record model="ir.actions.act_window" id="open_employee_leaves">
418 <field name="name">Employee's Leaves</field>
419 <field name="res_model">hr.holidays</field>
420 <field name="view_type">form</field>
421 <field name="view_mode">tree,form</field>
422 <field name="view_id" eval="view_holiday_employee"/>
423 <field name="context">{'default_type': 'remove', 'search_default_todo': 1}</field>
424 <field name="domain">[('type','=','remove')]</field>
425 <field name="search_view_id" ref="view_hr_holidays_filter"/>
428 <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"/>
430 <!-- Holidays status -->
431 <record id="view_holidays_status_filter" model="ir.ui.view">
432 <field name="name">hr.holidays.status.filter</field>
433 <field name="model">hr.holidays.status</field>
434 <field name="arch" type="xml">
435 <search string="Search Leave Type">
436 <field name="name" string="Leave Types"/>
437 <field name="categ_id"/>
442 <record model="ir.ui.view" id="edit_holiday_status_form">
443 <field name="name">hr.holidays.status.form</field>
444 <field name="model">hr.holidays.status</field>
445 <field name="arch" type="xml">
446 <form string="Leave Type">
449 <field name="categ_id"/>
452 <page string="Details">
454 <group name="selection" string="Validation">
455 <field name="double_validation"/>
456 <field name="limit"/>
458 <group name="second" string="Misc">
459 <field name="color_name"/>
460 <field name="active"/>
469 <record model="ir.ui.view" id="view_holiday_status_tree">
470 <field name="name">hr.holidays.status.tree</field>
471 <field name="model">hr.holidays.status</field>
472 <field name="arch" type="xml">
473 <tree string="Leave Type">
475 <field name="max_leaves"/>
476 <field name="leaves_taken"/>
477 <field name="remaining_leaves"/>
482 <record model="ir.ui.view" id="view_holiday_status_normal_tree">
483 <field name="name">hr.holidays.status.normal.tree</field>
484 <field name="model">hr.holidays.status</field>
485 <field name="priority">35</field>
486 <field name="arch" type="xml">
487 <tree string="Leave Type">
489 <field name="limit"/>
494 <record id="view_hr_holidays_status_search" model="ir.ui.view">
495 <field name="name">hr.holidays.status.search</field>
496 <field name="model">hr.holidays.status</field>
497 <field name="arch" type="xml">
498 <search string="Leave Type">
499 <field name="name" string="Leave Types"/>
500 <field name="categ_id"/>
505 <record id="open_view_holiday_status" model="ir.actions.act_window">
506 <field name="name">Leave Types</field>
507 <field name="type">ir.actions.act_window</field>
508 <field name="res_model">hr.holidays.status</field>
509 <field name="view_type">form</field>
510 <field name="view_mode">tree,form</field>
511 <field name="view_id" eval="view_holiday_status_normal_tree"/>
512 <field name="search_view_id" ref="view_hr_holidays_status_search"/>
515 <menuitem sequence="3" id="hr.menu_open_view_attendance_reason_config" parent="hr.menu_hr_configuration" name="Leaves" groups="base.group_hr_manager"/>
516 <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"/>
518 <!-- Holiday on resource leave -->
519 <record id="resource_calendar_leave_form_inherit" model="ir.ui.view">
520 <field name="name">resource.calendar.leaves.form.inherit</field>
521 <field name="model">resource.calendar.leaves</field>
522 <field name="inherit_id" ref="resource.resource_calendar_leave_form"/>
523 <field name="arch" type="xml">
524 <field name="name" position="after">
525 <field name="holiday_id"/>
531 <record id="act_hr_employee_holiday_request" model="ir.actions.act_window">
532 <field name="name">Leaves</field>
533 <field name="type">ir.actions.act_window</field>
534 <field name="res_model">hr.holidays</field>
535 <field name="src_model">hr.employee</field>
536 <field name="view_type">form</field>
537 <field name="view_mode">tree,form</field>
538 <field name="context">{'search_default_employee_id': [active_id], 'default_employee_id': active_id}</field>
539 <field name="domain">[('type','=','remove')]</field>
540 <field name="view_id" eval="view_holiday"/>
543 <record id="act_hr_employee_holiday_request_approved" model="ir.actions.act_window">
544 <field name="name">Leaves to be reported in Payslip</field>
545 <field name="type">ir.actions.act_window</field>
546 <field name="res_model">hr.holidays</field>
547 <field name="src_model">hr.employee</field>
548 <field name="view_type">form</field>
549 <field name="view_mode">tree,form</field>
550 <field name="context">{'search_default_employee_id': [active_id], 'search_default_validated': True, 'search_default_gray': True}</field>
551 <field name="domain">[('date_from','>=', context_today().strftime("%Y-%m-1")), ('date_from','<', ((context_today() + relativedelta(months=1)).strftime('%Y-%m-1')) )]</field>
552 <field name="view_id" eval="view_holiday_allocation_tree_customize"/>
555 <!-- Assing leave -->
556 <record id="hr_holidays_leaves_assign_tree_view" model="ir.ui.view">
557 <field name="name">hr.employee.leave.tree</field>
558 <field name="model">hr.employee</field>
559 <field name="priority" eval="20"/>
560 <field name="arch" type="xml">
561 <tree string="Assign Leaves" editable="bottom">
562 <field name="name" string="Employee"/>
563 <field name="remaining_leaves" string="Remaining Legal Leaves"/>
568 <record model="ir.actions.act_window" id="hr_holidays_leaves_assign_legal">
569 <field name="name">Allocate Leaves for Employees</field>
570 <field name="type">ir.actions.act_window</field>
571 <field name="res_model">hr.employee</field>
572 <field name="view_type">form</field>
573 <field name="view_mode">tree,form</field>
574 <field name="view_id" ref="hr_holidays_leaves_assign_tree_view"/>
575 <field name="help" type="html">
577 You can assign remaining Legal Leaves for each employee, Odoo
578 will automatically create and validate allocation requests.
583 <!-- Hr employee inherit Legal Leaves -->
584 <record id="view_employee_form_leave_inherit" model="ir.ui.view">
585 <field name="name">hr.employee.leave.form.inherit</field>
586 <field name="model">hr.employee</field>
587 <field name="inherit_id" ref="hr.view_employee_form"/>
588 <field name="arch" type="xml">
589 <xpath expr="//group[@name='active_group']" position="before">
590 <group string="Leaves">
591 <label for="remaining_leaves"/>
593 <field name="remaining_leaves" class="oe_inline"/> days
597 <xpath expr="//div[@name='button_box']" position="inside">
598 <button name="%(act_hr_employee_holiday_request_approved)d"
600 class="oe_stat_button"
602 groups="base.group_hr_user">
603 <field name="approved_leaves_count" widget="statinfo"/>
605 <button name="%(act_hr_employee_holiday_request)d"
607 class="oe_stat_button"
609 groups="base.group_hr_user">
610 <field name="leaves_count" widget="statinfo"/>
616 <record model="ir.ui.view" id="hr_kanban_view_employees_kanban">
617 <field name="name">HR - Employees Kanban with leave status</field>
618 <field name="model">hr.employee</field>
619 <field name="inherit_id" ref="hr.hr_kanban_view_employees"/>
620 <field name="arch" type="xml">
621 <xpath expr="//templates" position="before">
622 <field name="current_leave_id"/>
623 <field name="current_leave_state"/>
624 <field name="leave_date_from"/>
625 <field name="leave_date_to"/>
627 <xpath expr="//li[@id='last_login']" position="inside">
628 <span t-if="record.current_leave_id.raw_value" style="font-size: 100%%"
629 t-att-class="record.current_leave_state.raw_value=='validate'?'oe_kanban_button oe_kanban_color_3':'oe_kanban_button oe_kanban_color_2'"
630 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')">
631 <field name="current_leave_id"/>
638 id="act_hr_leave_request_to_meeting"
639 name="Leave Meetings"
640 src_model="hr.holidays"
641 res_model="calendar.event"
642 view_mode="tree,form,calendar,gantt"