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:
- 客戶關係
- e-Commerce
- 會計
- 庫存
- PoS
- Project
- MRP
此問題已被標幟
1
回覆
2896
瀏覽次數
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.
相關帖文 | 回覆 | 瀏覽次數 | 活動 | |
---|---|---|---|---|
|
2
7月 25
|
5836 | ||
|
2
10月 25
|
8475 | ||
|
2
11月 24
|
29317 | ||
|
2
5月 24
|
8121 | ||
|
3
3月 24
|
7535 |