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:
commit
67af6bcaae
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in New Issue