添加功能

This commit is contained in:
zhou
2025-08-14 18:36:48 +08:00
parent a54fe022a7
commit a507d63c01
2 changed files with 5 additions and 1 deletions
@@ -77,7 +77,6 @@ class AppletAttendance(Controller):
check_out = attendance_id.check_out + timedelta(hours=8) if attendance_id.check_out else ''
start_time_str = '09:00'
end_time_str = '18:00'
attendance_id.shift_name = '行政班次'
if attendance_id:
if not attendance_id.shift_id:
year = attendance_id.current_data.year
@@ -120,6 +120,11 @@ class HrAttendanceDetail(models.Model):
if not attendance.check_in:
attendance.check_in = record.checkin_time
attendance.check_out = record.checkin_time
else:
now_time = fields.Datetime.to_datetime(checkin_date) + timedelta(hours=8, days=1)
start_time = now_time - timedelta(days=2)
self.env["hr.attendance.detail"].get_hr_attendance_time(record.employee_id, now_time, start_time)
# 传参按一个人打卡一次传参