Ir al contenido
Menú
Se marcó esta pregunta
2 Respuestas
5198 Vistas

'sign_in_time':fields.datetime('Sing In', ), 'sign_out_time':fields.datetime('Sing Out',),

find different between date like total hour:='sign_in_time' -'sign_out_time'

Avatar
Descartar
Mejor respuesta

On Hr_timesheet_sheet module, there is already a method to do so. See the attendance field at the right bottom. Thanks.

Avatar
Descartar
Mejor respuesta

Arithmetic with datetime objects is done using timedelta.

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
1
may 21
11701
7
abr 16
14912
1
mar 15
6035
1
dic 23
1400
0
nov 23
1529