[UPDT] BASE: Updated get_horilla_model_class call from base models
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -20,4 +20,4 @@
|
||||
</li>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</ul>
|
||||
|
||||
@@ -25,4 +25,4 @@
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
onclick="event.preventDefault(); document.getElementById('language-form-{{ language.0 }}').submit();">
|
||||
<img src="{% static 'images/ui/' %}{{ language.0 }}.png" class="oh-dropdown__lang-icon" />{{ language.1 }}
|
||||
{% if language.0 == LANGUAGE_CODE %}
|
||||
<ion-icon name="checkmark-circle-outline"
|
||||
<ion-icon name="checkmark-circle-outline"
|
||||
style="position: relative; top: 3.3px; color: green; font-size: 1.2em;">
|
||||
</ion-icon>
|
||||
{% endif %}
|
||||
@@ -29,4 +29,4 @@
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user