Skip to Content
Menu
This question has been flagged
2 Replies
5330 Views

'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
Discard
Best Answer

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

Avatar
Discard
Best Answer

Arithmetic with datetime objects is done using timedelta.

Avatar
Discard
Related Posts Replies Views Activity
1
May 21
11842
7
Apr 16
15056
1
Mar 15
6203
1
Dec 23
1482
0
Nov 23
1665