跳至内容
菜单
此问题已终结
2 回复
5175 查看

'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'

形象
丢弃
最佳答案

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

形象
丢弃
最佳答案

Arithmetic with datetime objects is done using timedelta.

形象
丢弃
相关帖文 回复 查看 活动
1
5月 21
11695
7
4月 16
14904
1
3月 15
6020
1
12月 23
1379
0
11月 23
1516