コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
2907 ビュー

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
5861
2
10月 25
8486
2
11月 24
29331
2
5月 24
8127
3
3月 24
7542