Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odpovědi
5585 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
12049
7
dub 16
15278
1
bře 15
6458
1
pro 23
1643
0
lis 23
1826