[IMP] hr_timesheet_attendance: add the filters in the Timesheet/Attendance report
In this commit, add `My Team` and `My Department' filtes in the Timesheet/Attendance report task-2893556 Part-of: odoo/odoo#96330
This commit is contained in:
@@ -7,6 +7,9 @@
|
||||
<field name="arch" type="xml">
|
||||
<search string="Timesheet Attendance">
|
||||
<field name="user_id" string="Employee"/>
|
||||
<filter string="My Team" name="my_team" domain="[('user_id.employee_parent_id.user_id', '=', uid)]"/>
|
||||
<filter string="My Department" name="my_department" domain="[('user_id.employee_id.member_of_department', '=', True)]"/>
|
||||
<separator/>
|
||||
<filter name="month" string="Date" date="date"/>
|
||||
<filter name="group_by_user" string="Employee" context="{'group_by': 'user_id'}"/>
|
||||
<filter name="group_by_month" string="Date" date="date" context="{'group_by': 'date'}"/>
|
||||
|
||||
Reference in New Issue
Block a user