Ir al contenido
Menú
Se marcó esta pregunta
2 Respuestas
5487 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
11965
7
abr 16
15201
1
mar 15
6374
1
dic 23
1583
0
nov 23
1763