[FIX] hr_base_reports: attendances report take long time for excel
This commit is contained in:
parent
2f77ac7cf3
commit
9a2c53a8af
|
|
@ -92,12 +92,12 @@ class EmployeeAttendanceReportXlsx(models.AbstractModel):
|
|||
row = 10
|
||||
seq = 0
|
||||
for rec in docs[0]:
|
||||
attendance_value = rec.get_attendance_value(rec.employee_id, docs[1])
|
||||
# attendance_value = rec.get_attendance_value(rec.employee_id, docs[1])
|
||||
seq += 1
|
||||
clm = 0
|
||||
start = rec.employee_id.get_time_permission(rec.personal_permission_id)
|
||||
extra = rec.official_hours - rec.office_hours
|
||||
late = rec.break_duration + rec.lateness + rec.approve_exit_out
|
||||
# start = rec.employee_id.get_time_permission(rec.personal_permission_id)
|
||||
# extra = rec.official_hours - rec.office_hours
|
||||
# late = rec.break_duration + rec.lateness + rec.approve_exit_out
|
||||
sheet.write(row, clm, seq, format1)
|
||||
sheet.write(row, clm + 1, str(rec.date), format1)
|
||||
if rec.employee_id.saudi_number:
|
||||
|
|
|
|||
Loading…
Reference in New Issue