Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
8140 มุมมอง

While importing employee attendance data got this error :

'NoneType' object has no attribute 'tz'

Can anybody help please!!!

 

 

อวตาร
ละทิ้ง
ผู้เขียน คำตอบที่ดีที่สุด

Problem was, I didn't allocate user to one employee, so didn't get timezone for that and hence was the error...

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Make sure every required column is supplied when importing the employees. In this case you are missing a column or the column is not filled in correctly. Most likely something like country_id or language. Something that has a reference to timezone.

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
2
ก.ย. 23
7790
2
มี.ค. 23
46888
2
ธ.ค. 23
57815
0
มี.ค. 22
2462
3
มิ.ย. 20
10770