Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
2924 Widoki

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

Awatar
Odrzuć
Najlepsza odpowiedź

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

Awatar
Odrzuć

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

Powiązane posty Odpowiedzi Widoki Czynność
2
lip 25
5942
2
paź 25
8524
2
lis 24
29373
2
maj 24
8187
3
mar 24
7582