fix
This commit is contained in:
parent
f4d3d71488
commit
61d1ab8180
|
|
@ -14,14 +14,11 @@ class HrAttendanceWizard(models.TransientModel):
|
|||
def generate_missing_attendance(self):
|
||||
transactions = self.env['hr.attendance.transaction']
|
||||
if self.get_attendance_from == 'manual':
|
||||
start_date = datetime.strptime(str(self.date_from), "%Y-%m-%d %H:%M:%S")
|
||||
end_date = datetime.strptime(str(self.date_to), "%Y-%m-%d %H:%M:%S")
|
||||
start_date = datetime.strptime(str(self.date_from), "%Y-%m-%d %H:%M:%S")+ timedelta(hours=3)
|
||||
end_date = datetime.strptime(str(self.date_to), "%Y-%m-%d %H:%M:%S")+ timedelta(hours=3)
|
||||
delta = end_date - start_date
|
||||
for i in range(delta.days + 1):
|
||||
print('**********************',delta)
|
||||
print('*************222222********',i)
|
||||
day = start_date + timedelta(days=i)
|
||||
print('-------------------------------',start_date,day)
|
||||
transactions.process_attendance_scheduler_queue(day)
|
||||
else:
|
||||
if self.env['ir.module.module'].sudo().search([('state', '=', 'installed'),
|
||||
|
|
|
|||
Loading…
Reference in New Issue