添加功能
This commit is contained in:
@@ -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 = [
|
||||
|
||||
Reference in New Issue
Block a user