[FIX] attendances: compute times method

This commit is contained in:
Samir Ladoui 2024-12-24 12:16:53 +01:00
parent 6d1b055dfc
commit ad6029db15
1 changed files with 4 additions and 0 deletions

View File

@ -52,9 +52,13 @@ class HrPersonalPermission(models.Model):
if rec.date_from:
tf = rec.date_from.time()
rec.time_from = tf.hour + tf.minute / 60
else:
rec.time_from = 0.0
if rec.date_to:
tt = rec.date_to.time()
rec.time_to = tt.hour + tt.minute / 60
else:
rec.time_to = False