fix cron atten

This commit is contained in:
Bakry 2025-05-20 15:20:10 +03:00
parent b9fc3be225
commit fd9797b5c7
1 changed files with 2 additions and 1 deletions

View File

@ -366,7 +366,8 @@ class HrPersonalPermission(models.Model):
self.call_cron_function()
def call_cron_function(self):
date = datetime.strptime(str(self.date), "%Y-%m-%d")
#date = datetime.strptime(str(self.date), "%Y-%m-%d")
date = datetime.strptime(str(self.date_from), "%Y-%m-%d %H:%M:%S").date()
self.env['hr.attendance.transaction'].process_attendance_scheduler_queue(date, self.employee_id)
# @api.constrains('date_from', 'date_to')