Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
5446 มุมมอง

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

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
Convert widget=float_time to 24h format. แก้ไขแล้ว
1
พ.ค. 21
11929
Fields 'Time ' in openerp 7.0 แก้ไขแล้ว
7
เม.ย. 16
15175
1
มี.ค. 15
6320
1
ธ.ค. 23
1550
0
พ.ย. 23
1725