From 6567af71d0e14744727e3bdeb983f95d847cd57c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=B9=8F=E5=AE=87?= Date: Mon, 23 Dec 2024 09:19:40 +0800 Subject: [PATCH] =?UTF-8?q?ljm=20=E4=BF=AE=E6=94=B9=E5=A4=87=E4=BB=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yuthon_wechat/models/hr_attendance_detail.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yuthon_wechat/models/hr_attendance_detail.py b/yuthon_wechat/models/hr_attendance_detail.py index 72c2e06fe..2fdf2a219 100644 --- a/yuthon_wechat/models/hr_attendance_detail.py +++ b/yuthon_wechat/models/hr_attendance_detail.py @@ -625,7 +625,7 @@ class HrAttendanceDetail(models.Model): 'employee_id': hr_employee_obj.id, "userid": user.oauth_uid, "current_data": current_date, - "shift_id": planning_slot_id.id, + "shift_id": planning_slot_id[0].id, "attendance_type": "wx_work" }) else: