Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
2917 Lượt xem

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

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ

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

Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 7 25
5902
2
thg 10 25
8498
2
thg 11 24
29356
2
thg 5 24
8148
3
thg 3 24
7556