添加功能
This commit is contained in:
@@ -58,7 +58,7 @@ class BusController(Controller):
|
||||
if employee_id:
|
||||
request.env(user=SUPERUSER_ID)["hr.attendance.detail"].create({
|
||||
'employee_id': employee_id.id, # 员工
|
||||
'checkin_time': fields.Datetime.now() - timedelta(hours=8), # 打卡时间
|
||||
'checkin_time': fields.Datetime.now(), # 打卡时间
|
||||
'source': 'iot', # 打卡来源
|
||||
'attendance_iot_id': attendance_iot_id.id, # 打卡设备
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user