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

How to retrieve check in time from database in hr_attendance in odoo.

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hi,

Its rather simple question, you can fetch it directly from the database table,

attendance_rec = self.env['hr.attendance'].search([])
for rec in attendance_rec:
print rec.check_in

The search method will return all the records in the attendance table and iterating over the for loop and from the field named check_in you can get the check-in time. The value you will get will be in UTC, you can convert it to the users timezone.


Thanks

อวตาร
ละทิ้ง

Hello, how can i save data to backend when check in through website? Please help me on this.

Related Posts ตอบกลับ มุมมอง กิจกรรม
2
ก.ค. 25
5858
2
ต.ค. 25
8484
How to ORDER BY? [Odoo 10] แก้ไขแล้ว
2
พ.ย. 24
29328
2
พ.ค. 24
8125
3
มี.ค. 24
7541