How to retrieve check in time from database in hr_attendance in odoo.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Buchhaltung
- Lager
- PoS
- Project
- MRP
Diese Frage wurde gekennzeichnet
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.
Diskutieren Sie gerne? Treten Sie bei, statt nur zu lesen!
Erstellen Sie heute ein Konto, um exklusive Funktionen zu nutzen und mit unserer tollen Community zu interagieren!
RegistrierenVerknüpfte Beiträge | Antworten | Ansichten | Aktivität | |
---|---|---|---|---|
|
2
Juli 25
|
5858 | ||
|
2
Okt. 25
|
8484 | ||
How to ORDER BY? [Odoo 10]
Gelöst
|
|
2
Nov. 24
|
29328 | |
|
2
Mai 24
|
8125 | ||
|
3
März 24
|
7541 |