Merge branch 'leave_manage' into 'development'

add file for hide menus

See merge request prakash.jain/cor-odoo!189
This commit is contained in:
pawan.sharma 2021-07-24 18:05:44 +00:00
commit f85a8e6b53
3 changed files with 30 additions and 7 deletions

View File

@ -33,6 +33,7 @@
'views/hr_employee_views.xml',
'views/hr_timesheet_templates.xml',
'views/analytic_view.xml',
'views/hide_menus.xml',
'report/project_hours_report_view.xml',
'report/project_profitability_report_analysis_views.xml',
'views/views.xml',

View File

@ -236,11 +236,4 @@
<field name="act_window_id" ref="hr_timesheet.act_hr_timesheet_line"/>
</record>
<!-- Change timesheet menu sequence -->
<menuitem id="hr_timesheet.timesheet_menu_root"
name="Timesheets"
sequence="-1"
groups="hr_timesheet.group_hr_timesheet_user"
web_icon="hr_timesheet,static/description/icon_timesheet.png"/>
</odoo>

29
cor_custom/views/hide_menus.xml Executable file
View File

@ -0,0 +1,29 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- Change timesheet menu sequence -->
<menuitem id="hr_timesheet.timesheet_menu_root"
name="Timesheets"
sequence="-1"
groups="hr_timesheet.group_hr_timesheet_user"
web_icon="hr_timesheet,static/description/icon_timesheet.png"/>
<!-- Hide Discuss Menu -->
<menuitem
id="mail.menu_root_discuss"
name="Discuss"
action="mail.action_discuss"
web_icon="mail,static/description/icon.png"
groups="base.group_erp_manager"
sequence="1"
/>
<!-- Hide Contact Menu -->
<menuitem name="Contacts"
id="menu_contacts"
sequence="4"
web_icon="contacts,static/description/icon.png"
groups="base.group_erp_manager"/>
<!--groups="base.group_user,base.group_partner_manager"/>-->
</odoo>