Skip to content

Commit

Permalink
Merge pull request #66 from coopiteasy/9.0-provelo-rh4
Browse files Browse the repository at this point in the history
[9.0][ADD] provelo_customization: reports leaves view accessible
  • Loading branch information
vvrossem authored Mar 31, 2020
2 parents 6ee5ad4 + 2ee69d4 commit 0030d2d
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 0 deletions.
2 changes: 2 additions & 0 deletions provelo_customization/__openerp__.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,10 @@
"views/hr_timesheet_sheet_view.xml",
"views/location_filters.xml",
"views/res_partner_views.xml",
"report/available_holidays_view.xml",
"security/security.xml",
"security/ir.model.access.csv",
"wizard/hr_holidays_summary_department_view.xml",
],
"installable": True,
}
19 changes: 19 additions & 0 deletions provelo_customization/report/available_holidays_view.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record model="ir.actions.act_window" id="hr_holidays.action_hr_available_holidays_report">
<field name="name">Leaves Analysis</field>
<field name="res_model">hr.holidays</field>
<field name="view_type">form</field>
<field name="view_mode">graph,pivot,calendar,form</field>
<field name="view_id"></field>
<!-- override starts here -->
<field name="context">
{
'search_default_leaves':1,
'search_default_allocations':1
}
</field>
<!-- override ends here -->
<field name="search_view_id" ref="hr_holidays.view_hr_holidays_filter"/>
</record>
</odoo>
7 changes: 7 additions & 0 deletions provelo_customization/views/hr_holidays_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,12 @@
groups="base.group_hr_manager"
sequence="40"/>

<menuitem name="Reports"
parent="hr_holidays.menu_hr_holidays_root"
id="hr_holidays.menu_hr_holidays_report"
groups="base.group_user"
sequence="99"/>


</data>
</odoo>
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>

<menuitem
name="Leaves by Department"
parent="hr_holidays.menu_hr_holidays_report"
action="hr_holidays.action_hr_holidays_summary_dept"
id="hr_holidays.menu_account_central_journal"
icon="STOCK_PRINT"
groups="base.group_hr_user"/>

</odoo>

0 comments on commit 0030d2d

Please sign in to comment.