[FIX] ASSET: Fixed asset allocation detail view error for employees with out work info

This commit is contained in:
Horilla
2025-10-14 14:22:26 +05:30
parent b6f054b3a8
commit ba41dc5958

View File

@@ -498,7 +498,7 @@ class AssetAssignment(HorillaModel):
"""
Return subtitle containing both department and job position information.
"""
return f"{self.assigned_to_employee_id.employee_work_info.department_id} / {self.assigned_to_employee_id.employee_work_info.job_position_id}"
return f"{self.employee_id.get_department()} / {self.employee_id.get_job_position()}"
def status_display(self):
status = self.asset_id.asset_status