跳至内容
菜单
此问题已终结
1 回复
2914 查看

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

形象
丢弃
最佳答案

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
5893
2
10月 25
8493
2
11月 24
29348
2
5月 24
8138
3
3月 24
7554