[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>
|
||||
|
||||
Reference in New Issue
Block a user