添加功能

This commit is contained in:
李鹏宇
2026-02-13 10:47:10 +08:00
parent 99a6be7dd1
commit 5da1c700dc
+1 -1
View File
@@ -676,7 +676,7 @@ class HrAttendance(models.Model):
next_day = current_date + timedelta(days=1)
start_datetime = datetime.combine(current_date, datetime.min.time()) - timedelta(hours=8)
check_out_end = self.float_to_datetime(current_date, template.check_out_end)
if template.day2 == '次日':
if template.check_out_end < template.check_out_start:
check_out_end = self.float_to_datetime(next_day, template.check_out_end)
domain = [
('employee_id', '=', employee_id.id),