添加功能

This commit is contained in:
李鹏宇
2025-11-18 18:31:44 +08:00
parent 93e5d6156a
commit 089e256cd9
+2 -2
View File
@@ -801,8 +801,8 @@ class HrAttendance(models.Model):
next_call = cron.nextcall + timedelta(hours=8)
start_window = next_call - timedelta(minutes=5)
end_window = next_call + timedelta(minutes=5)
# if not (start_window <= fields.Datetime.now() <= end_window):
# return
if not (start_window <= fields.Datetime.now() <= end_window):
return
slot_start = datetime.combine(current_date, datetime.min.time())
slot_end = datetime.combine(current_date + timedelta(days=1), datetime.min.time())
domain = [