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
- Accounting
- Inventory
- PoS
- Project management
- MRP
This question has been flagged
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.
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
How to ORDER BY? [Odoo 10]
Solved
|
|
2
Nov 24
|
25081 | |
|
2
May 24
|
5514 | ||
|
3
Mar 24
|
4964 | ||
|
0
Mar 24
|
262 | ||
|
3
Feb 24
|
11421 |