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
- Contabilidad
- Inventario
- PoS
- Project
- MRP
Se marcó esta pregunta
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.
¿Le interesa esta conversación? ¡Participe en ella!
Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.
Inscribirse| Publicaciones relacionadas | Respuestas | Vistas | Actividad | |
|---|---|---|---|---|
|
|
2
jul 25
|
5954 | ||
|
|
2
oct 25
|
8533 | ||
|
How to ORDER BY? [Odoo 10]
Resuelto
|
|
2
nov 24
|
29375 | |
|
|
2
may 24
|
8194 | ||
|
|
3
mar 24
|
7588 |