Development (#125)

* [UPDT] EMPLOYEE: Updated employee individual view tab select option by adding permission

* [UPDT] LEAVE: Updated holiday delete method by adding hx attributes and holiday table action column by adding user permission

* [UPDT] TEMPLATES: Updated Configuration subemenu permission for a user

* [UPDT] PMS: Updated performance dashboard data's fetching by changing filter field in employee key result
This commit is contained in:
Horilla
2024-03-20 08:44:48 +00:00
committed by GitHub
parent c514599c8a
commit 75a775bd34
47 changed files with 99 additions and 3498 deletions

View File

@@ -219,7 +219,7 @@ class Comment(models.Model):
)
created_at = models.DateTimeField(auto_now_add=True, null=True, blank=True)
history = HorillaAuditLog(excluded_fields=["comment"], bases=[HorillaAuditInfo])
objects = HorillaCompanyManager("employee_id__employee_work_info__company_id")
objects = HorillaCompanyManager(related_company_field="employee_id__employee_work_info__company_id")
def __str__(self):
return f"{self.employee_id.employee_first_name} - {self.comment} "
@@ -276,7 +276,7 @@ class EmployeeKeyResult(models.Model):
start_date = models.DateField(null=True, blank=True)
end_date = models.DateField(null=True, blank=True)
history = HorillaAuditLog(bases=[HorillaAuditInfo])
objects = HorillaCompanyManager("employee_objective_id__objective_id__company_id")
objects = HorillaCompanyManager(related_company_field="employee_objective_id__objective_id__company_id")
progress_percentage = models.IntegerField(default=0)
def __str__(self):