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

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.

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
2
سبتمبر 23
8084
2
مارس 23
47224
2
ديسمبر 23
58268
0
مارس 22
2731
3
يونيو 20
11052