Update attendance_report.py

This commit is contained in:
AbuzarExp 2024-08-05 11:55:11 +03:00 committed by GitHub
parent 9601729376
commit b24fde0727
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -104,7 +104,7 @@ class EmployeeAttendanceReportXlsx(models.AbstractModel):
sheet.write(row, clm + 2, rec.employee_id.saudi_number.saudi_id, format1)
if rec.employee_id.iqama_number:
sheet.write(row, clm + 2, rec.employee_id.iqama_number.iqama_id, format1)
sheet.write(row, clm + 3, rec.employee_id.name, format1)
sheet.write(row, clm + 3, rec.employee_id.with_context({'lang': str(self.env.user.lang)}).name, format1)
sheet.write(row, clm + 4, rec.employee_id.department_id.name, format1)
sheet.write(row, clm + 5, rec.employee_id.job_id.name, format1)
sheet.write(row, clm + 6, '{0:02.0f}:{1:02.0f}'.format(*divmod(float(rec.sign_in) * 60, 60)), format1)