Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
2 Respostas
5229 Visualizações

'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
Cancelar
Melhor resposta

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

Avatar
Cancelar
Melhor resposta

Arithmetic with datetime objects is done using timedelta.

Avatar
Cancelar
Publicações relacionadas Respostas Visualizações Atividade
1
mai. 21
11715
7
abr. 16
14925
1
mar. 15
6049
1
dez. 23
1420
0
nov. 23
1541