Merge pull request #2584 from expsa/samir-aladawi-fix-dvice-biometric

[FIX] attendances: check module existence before using field device_id
This commit is contained in:
SamirLADOUI-sa 2025-03-05 12:44:32 +01:00 committed by GitHub
commit 67af6bcaae
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -305,7 +305,7 @@ class HrAttendanceTransactions(models.Model):
out_dt = fields.Datetime.from_string(out.name)
if out_dt < next_min_in_dt:
one_out_dt = out_dt
checkout_device = out.device_id
checkout_device = out.device_id if at_device else False
linked_out_ids.append(out.id)
signed = True
else: