Ir al contenido
Menú
Se marcó esta pregunta
2 Respuestas
5452 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
11935
7
abr 16
15181
1
mar 15
6327
1
dic 23
1553
0
nov 23
1729