[UPDT] BASE: Updated get_horilla_model_class call from base models

This commit is contained in:
Horilla
2024-10-22 11:18:01 +05:30
parent 2c5f3e300f
commit 992de654e5
5 changed files with 5 additions and 50 deletions

View File

@@ -1728,7 +1728,7 @@ def create_deduction_cutleave_from_penalty(sender, instance, created, **kwargs):
if created:
penalty_amount = instance.penalty_amount
if apps.is_installed("payroll") and penalty_amount:
Deduction = get_horilla_model_class(app_label="payroll", model="Deduction")
Deduction = get_horilla_model_class(app_label="payroll", model="deduction")
penalty = Deduction()
if instance.late_early_id:
penalty.title = f"{instance.late_early_id.get_type_display()} penalty"

View File

@@ -77,51 +77,6 @@
"skills": []
}
},
{
"model": "recruitment.stage",
"pk": 1,
"fields": {
"created_at": "2024-05-22T08:48:40.159Z",
"created_by": 1,
"modified_by": 1,
"is_active": true,
"recruitment_id": 1,
"stage": "Initial",
"stage_type": "initial",
"sequence": 0,
"stage_managers": []
}
},
{
"model": "recruitment.stage",
"pk": 2,
"fields": {
"created_at": "2024-05-22T08:55:43.916Z",
"created_by": 1,
"modified_by": 1,
"is_active": true,
"recruitment_id": 2,
"stage": "Initial",
"stage_type": "initial",
"sequence": 0,
"stage_managers": []
}
},
{
"model": "recruitment.stage",
"pk": 3,
"fields": {
"created_at": "2024-05-22T09:03:26.902Z",
"created_by": 1,
"modified_by": 1,
"is_active": true,
"recruitment_id": 3,
"stage": "Initial",
"stage_type": "initial",
"sequence": 0,
"stage_managers": []
}
},
{
"model": "recruitment.stage",
"pk": 4,