跳至內容
選單
此問題已被標幟
2 回覆
5349 瀏覽次數

'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
11849
7
4月 16
15073
1
3月 15
6216
1
12月 23
1504
0
11月 23
1687