diff --git a/yuthon_hr_attendance/models/hr_attendance.py b/yuthon_hr_attendance/models/hr_attendance.py index 4868af804..7521933bf 100644 --- a/yuthon_hr_attendance/models/hr_attendance.py +++ b/yuthon_hr_attendance/models/hr_attendance.py @@ -102,7 +102,7 @@ class HrAttendance(models.Model): #考勤异常提醒 def card_remind(self): menu_id = self.env['ir.ui.menu'].sudo().search([('name', '=', '我的考勤')]) - all_employees = self.env['hr.employee'].search([]) + all_employees = self.env['hr.employee'].search(['name', '=', '叶华锋']) abnormal_employees = [] current_date = fields.Date.today() month_start = current_date.replace(day=1)