[FIX] attendances: compute times method
This commit is contained in:
parent
6d1b055dfc
commit
ad6029db15
|
|
@ -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
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue