Skip to Content
मेन्यू
This question has been flagged
1 Reply
2910 Views

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

Avatar
Discard
Best Answer

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

Avatar
Discard

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

Related Posts Replies Views Activity
2
जुल॰ 25
5881
2
अक्तू॰ 25
8489
2
नव॰ 24
29345
2
मई 24
8132
3
मार्च 24
7551