[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

@@ -20,4 +20,4 @@
</li>
{% endif %}
{% endfor %}
</ul>
</ul>

View File

@@ -25,4 +25,4 @@
</ul>
</div>
</div>
</div>
</div>

View File

@@ -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>