[UPDT] LEAVE: Added reporting manager to multiple approve condition

This commit is contained in:
Horilla
2025-01-09 13:22:38 +05:30
parent 84952ddf8a
commit c675862e64
6 changed files with 61 additions and 19 deletions

View File

@@ -765,6 +765,8 @@ class LeaveRequest(HorillaModel):
managers = applicable_condition.approval_managers()
for manager in managers:
sequence += 1
if not isinstance(manager, Employee):
manager = getattr(self.employee_id.employee_work_info, manager)
LeaveRequestConditionApproval.objects.create(
sequence=sequence,
leave_request_id=self,