From dc58a396730f75093c098045d7eb78f97e67f3bc Mon Sep 17 00:00:00 2001 From: zhou <123@> Date: Mon, 21 Jul 2025 17:04:45 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yuthon_hr_attendance/models/hr_attendance.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/yuthon_hr_attendance/models/hr_attendance.py b/yuthon_hr_attendance/models/hr_attendance.py index 9dd58437f..6974b9cda 100644 --- a/yuthon_hr_attendance/models/hr_attendance.py +++ b/yuthon_hr_attendance/models/hr_attendance.py @@ -137,13 +137,14 @@ class HrAttendance(models.Model): abnormal_employees.append(employee) for emp in abnormal_employees: - url = f'https://oa.thtzjt.com/web#id={self.id}&cids=2&action={menu_id.action.id}&model=hr.attendance&view_type=from&menu_id={menu_id.id}' - self.sudo().env["wecom.apps"].sync_send_message_textcard(category='attendance', + url = f'https://oa.thtzjt.com/web#id={self.id}&cids=2&action={menu_id.action.id}&model=hr.attendance&view_type=list&menu_id={menu_id.id}' + self.sudo().env["wecom.apps"].sync_send_message_textcard(category='default', user_id=emp.wecom_userid, title="打卡异常提醒", description="您本月有打卡异常".format( url=url, btntxt="详细信息")) + @api.depends('employee_id', 'check_in', 'check_out') def _compute_display_name(self): for attendance in self: