Files
odoo_source/addons/hr_holidays/views/hr_holidays_views.xml
T
Krina Oza b1b6ccc85d [FIX] hr_holidays: add default filter
Currently, in the overview page of timeoff, in gantt view all
records of the company are displayed. The purpose of this commit
is to improve the loading time by displaying less information
also remove "by employee and time off type" from reporting.

So in this commit, added a default filter "My Department" on
overview page and removed "by employee and time off type" from
the menu "reporting".

closes odoo/odoo#80542

Task-id: 2695774
X-original-commit: ede8331294ebd163af93c8c02eacfbffccfa97c6
Signed-off-by: Kevin Baptiste <kba@odoo.com>
2021-11-29 16:28:10 +00:00

122 lines
3.5 KiB
XML

<?xml version='1.0' encoding='UTF-8' ?>
<odoo>
<menuitem
name="Time Off"
id="menu_hr_holidays_root"
sequence="225"
web_icon="hr_holidays,static/description/icon.png"
groups="base.group_user"/>
<menuitem
id="menu_hr_holidays_my_leaves"
name="My Time Off"
parent="menu_hr_holidays_root"
sequence="1"/>
<menuitem
id="hr_leave_menu_new_request"
parent="menu_hr_holidays_my_leaves"
action="hr_leave_action_new_request"
sequence="1"/>
<menuitem
id="hr_leave_menu_my"
parent="menu_hr_holidays_my_leaves"
action="hr_leave_action_my"
sequence="2"/>
<menuitem
id="menu_open_allocation"
name="My Allocations"
parent="menu_hr_holidays_my_leaves"
action="hr_leave_allocation_action_my"
sequence="3"/>
<menuitem
id="menu_hr_holidays_dashboard"
name="Overview"
parent="menu_hr_holidays_root"
sequence="2"
action="action_hr_holidays_dashboard"/>
<menuitem
id="menu_hr_holidays_approvals"
name="Approvals"
parent="menu_hr_holidays_root"
sequence="3"
groups="hr_holidays.group_hr_holidays_responsible"/>
<menuitem
id="menu_open_department_leave_approve"
name="Time Off"
parent="menu_hr_holidays_approvals"
action="hr_leave_action_action_approve_department"
sequence="1"/>
<menuitem
id="hr_holidays_menu_manager_approve_allocations"
name="Allocations"
parent="menu_hr_holidays_approvals"
action="hr_leave_allocation_action_approve_department"
sequence="2"/>
<menuitem
id="menu_hr_holidays_report"
name="Reporting"
parent="menu_hr_holidays_root"
groups="hr_holidays.group_hr_holidays_user"
sequence="4"/>
<menuitem
id="menu_hr_available_holidays_report_tree"
name="by Employee"
parent="menu_hr_holidays_report"
action="action_hr_available_holidays_report"
sequence="1"/>
<menuitem
id="menu_hr_holidays_summary_all"
name="by Type"
parent="menu_hr_holidays_report"
action="act_hr_employee_holiday_request"
sequence="3"/>
<menuitem
id="menu_hr_holidays_configuration"
name="Configuration"
parent="menu_hr_holidays_root"
groups="hr_holidays.group_hr_holidays_manager"
sequence="5"/>
<menuitem
id="hr_holidays_status_menu_configuration"
action="open_view_holiday_status"
name="Time Off Types"
parent="menu_hr_holidays_configuration"
groups="hr_holidays.group_hr_holidays_manager"
sequence="1"/>
<menuitem
id="hr_holidays_accrual_menu_configuration"
action="open_view_accrual_plans"
name="Accrual Plans"
parent="menu_hr_holidays_configuration"
groups="hr_holidays.group_hr_holidays_manager"
sequence="2"/>
<menuitem
id="hr_holidays_public_time_off_menu_configuration"
action="open_view_public_holiday"
name="Public Holidays"
parent="menu_hr_holidays_configuration"
groups="hr_holidays.group_hr_holidays_manager"
sequence="3"/>
<menuitem id="hr_holidays_menu_config_activity_type"
action="mail_activity_type_action_config_hr_holidays"
parent="menu_hr_holidays_configuration"
groups="base.group_no_one"/>
</odoo>