1
This commit is contained in:
@@ -347,6 +347,7 @@ class AppletAttendance(Controller):
|
||||
|
||||
department = employee_id.department_id
|
||||
slot_template = None
|
||||
groupname = ''
|
||||
if department:
|
||||
slot_template = request.env(user=SUPERUSER_ID)["planning.slot.template"].search(
|
||||
[('department_id', '=', department.id)], limit=1)
|
||||
@@ -406,7 +407,7 @@ class AppletAttendance(Controller):
|
||||
# 创建考勤记录
|
||||
request.env(user=SUPERUSER_ID)["hr.attendance.detail"].create({
|
||||
'employee_id': employee_id.id,
|
||||
'checkin_time': current_datetime,
|
||||
'checkin_time': current_datetime - timedelta(hours=8),
|
||||
'source': 'mini_programs',
|
||||
'groupname': groupname,
|
||||
'checkin_type': checkin_type,
|
||||
|
||||
Reference in New Issue
Block a user