diff --git a/yuthon_hr_attendance/models/hr_attendance_detail_wechat.py b/yuthon_hr_attendance/models/hr_attendance_detail_wechat.py index 2661ea650..d159d6658 100644 --- a/yuthon_hr_attendance/models/hr_attendance_detail_wechat.py +++ b/yuthon_hr_attendance/models/hr_attendance_detail_wechat.py @@ -208,12 +208,12 @@ 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 != '蒋彬': + 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, ) - if record.employee_id.name == '蒋彬': + if record.employee_id.name in ['蒋彬', '麦丽娜']: self.sudo().env["wecom.apps"].sync_send_message( category='att', user_id='18562027762', message=message + f'管理员测试管理员测试{vals}',