diff --git a/yuthon_hr_attendance/models/hr_attendance_detail_wechat.py b/yuthon_hr_attendance/models/hr_attendance_detail_wechat.py index 8937c8f38..91e2a7f54 100644 --- a/yuthon_hr_attendance/models/hr_attendance_detail_wechat.py +++ b/yuthon_hr_attendance/models/hr_attendance_detail_wechat.py @@ -209,10 +209,10 @@ class HrAttendanceDetail(models.Model): if checkin_datetime > sch_check_out_time: message = f"打卡成功!今日下班时间:{record.checkin_time + timedelta(hours=8)}: {employee_id.name},祝您归途平安!" # if record.employee_id.name not in ['蒋彬', '麦丽娜']: - # self.sudo().env["wecom.apps"].sync_send_message( - # category='att', user_id=employee_id.wecom_userid, - # message=message, - # ) + self.sudo().env["wecom.apps"].sync_send_message( + category='att', user_id=employee_id.wecom_userid, + message=message, + ) # if record.employee_id.name in ['蒋彬', '麦丽娜']: # self.sudo().env["wecom.apps"].sync_send_message( # category='att', user_id='18562027762',