diff --git a/hrms/hr/report/monthly_attendance_sheet/test_monthly_attendance_sheet.py b/hrms/hr/report/monthly_attendance_sheet/test_monthly_attendance_sheet.py index 71fa9745e1..2fdc24a07d 100644 --- a/hrms/hr/report/monthly_attendance_sheet/test_monthly_attendance_sheet.py +++ b/hrms/hr/report/monthly_attendance_sheet/test_monthly_attendance_sheet.py @@ -205,6 +205,11 @@ def test_attendance_with_group_by_filter(self): mark_attendance(self.employee, previous_month_first + relativedelta(days=2), "On Leave") mark_attendance(self.employee, previous_month_first + relativedelta(days=3), "Present") + departmentless_employee = make_employee( + "emp@departmentless.com", company=self.company, department=None + ) + mark_attendance(departmentless_employee, previous_month_first + relativedelta(days=3), "Present") + filters = frappe._dict( { "month": previous_month_first.month,