Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odpovědi
5177 Zobrazení

'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
Zrušit
Nejlepší odpověď

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

Avatar
Zrušit
Nejlepší odpověď

Arithmetic with datetime objects is done using timedelta.

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
kvě 21
11695
7
dub 16
14906
1
bře 15
6026
1
pro 23
1381
0
lis 23
1517