fix report Termination
This commit is contained in:
parent
8c844bb44c
commit
e34e8b06a1
|
|
@ -58,7 +58,7 @@
|
|||
<t t-esc="o.first_hire_date"/>
|
||||
</td>
|
||||
<td>
|
||||
<span t-esc="o.reason"/>
|
||||
<span t-esc="o.cause_type.name"/>
|
||||
</td>
|
||||
<td>
|
||||
<span t-esc="o.create_date"/>
|
||||
|
|
@ -67,7 +67,7 @@
|
|||
<span t-esc="o.last_work_date"/>
|
||||
</td>
|
||||
<td>
|
||||
<span t-esc="o.employee_id.working_location"/>
|
||||
<span t-esc="o.employee_id.working_location.name"/>
|
||||
</td>
|
||||
<td>
|
||||
<span t-esc="o.employee_id.parent_id.name"/>
|
||||
|
|
@ -96,4 +96,4 @@
|
|||
<field name="report_file">hr_base_reports.employee_handover_report_xlsx</field>
|
||||
</record>
|
||||
</data>
|
||||
</odoo>
|
||||
</odoo>
|
||||
|
|
|
|||
|
|
@ -82,11 +82,11 @@ class EmployeeHandoverReportXlsx(models.AbstractModel):
|
|||
sheet.write(row, clm + 2, rec.employee_id.name, format1)
|
||||
sheet.write(row, clm + 3, rec.job_id.name, format1)
|
||||
sheet.write(row, clm + 4, rec.employee_id.department_id.name, format1)
|
||||
sheet.write(row, clm + 5, rec.first_hire_date, format1)
|
||||
sheet.write(row, clm + 5, str(rec.first_hire_date), format1)
|
||||
sheet.write(row, clm + 6, rec.reason, format1)
|
||||
sheet.write(row, clm + 7, rec.create_date, format1)
|
||||
sheet.write(row, clm + 8, rec.last_work_date, format1)
|
||||
sheet.write(row, clm + 9, rec.employee_id.working_location, format1)
|
||||
sheet.write(row, clm + 7, str(rec.create_date), format1)
|
||||
sheet.write(row, clm + 8, str(rec.last_work_date), format1)
|
||||
sheet.write(row, clm + 9, rec.employee_id.working_location.name, format1)
|
||||
sheet.write(row, clm + 10, rec.employee_id.parent_id.name, format1)
|
||||
row += 1
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue