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: