Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
1 Vastaa
2916 Näkymät

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

Avatar
Hylkää
Paras vastaus

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
Hylkää

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

Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
2
heinäk. 25
5902
2
lokak. 25
8498
2
marrask. 24
29356
2
toukok. 24
8148
3
maalisk. 24
7556