-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #66 from coopiteasy/9.0-provelo-rh4
[9.0][ADD] provelo_customization: reports leaves view accessible
- Loading branch information
Showing
4 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
provelo_customization/wizard/hr_holidays_summary_department_view.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |