Skip to content

Commit

Permalink
[IMP] #68 replace time off report server action with window action
Browse files Browse the repository at this point in the history
fixes #68
  • Loading branch information
hbrunn committed Jan 22, 2024
1 parent 9c2f8ee commit f62002b
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions verdigado_attendance/views/menu.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,20 @@
>
<field name="groups_id" eval="[(6, 0, [ref('base.group_no_one')])]" />
</record>

<record id="action_hr_leave_report" model="ir.actions.act_window">
<field name="name">Time Off Analysis</field>
<field name="res_model">hr.leave.report</field>
<field name="search_view_id" ref="hr_holidays.view_hr_holidays_filter_report" />
<field name="domain">[('holiday_type', '=', 'employee')]</field>
<field name="view_mode">tree,pivot,form</field>
<field name="context">
{'search_default_group_type': True, 'search_default_year': True,
'search_default_validated': True, 'search_default_active_employee': True}
</field>
</record>

<record id="hr_holidays.menu_hr_holidays_summary_all" model="ir.ui.menu">
<field name="action" ref="action_hr_leave_report" />
</record>
</odoo>

0 comments on commit f62002b

Please sign in to comment.