Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
2913 Zobrazení

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

Avatar
Zrušit
Nejlepší odpověď

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
Zrušit

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

Related Posts Odpovědi Zobrazení Aktivita
2
čvc 25
5890
2
říj 25
8491
2
lis 24
29347
2
kvě 24
8134
3
bře 24
7554