تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
2904 أدوات العرض

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
يوليو 25
5860
2
أكتوبر 25
8484
2
نوفمبر 24
29331
2
مايو 24
8125
3
مارس 24
7541