Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
2906 Переглядів

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
5861
2
жовт. 25
8486
2
лист. 24
29331
2
трав. 24
8127
3
бер. 24
7542