Skip to Content
Menu
This question has been flagged
2 Replies
5174 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
11692
7
Apr 16
14901
1
Mar 15
6014
1
Dec 23
1379
0
Nov 23
1512