This question has been flagged
2 Replies
3985 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