From b2082de33203e27c92a6eb7182c6c9a9bff98e89 Mon Sep 17 00:00:00 2001 From: pengyuthon Date: Tue, 21 Apr 2026 10:20:51 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yuthon_hr_attendance/models/hr_attendance_detail_wechat.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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}',