[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:
Kartik Chavda
2022-11-30 20:03:11 +01:00
parent 66f60540c6
commit 3e4b266fd1
@@ -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'}"/>