[UPDT] PAYROLL: Remove Reimbursement model status field editable attribute, For list out field in Mail automation condition

This commit is contained in:
Horilla
2025-09-25 16:20:35 +05:30
parent bfde129fe7
commit e9c17a2cde
2 changed files with 4 additions and 2 deletions

View File

@@ -793,7 +793,7 @@ class ReimbursementForm(ModelForm):
class Meta:
model = Reimbursement
fields = "__all__"
exclude = ["is_active"]
exclude = ["is_active", "status"]
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)

View File

@@ -1629,7 +1629,9 @@ class Reimbursement(HorillaModel):
)
amount = models.FloatField(default=0)
status = models.CharField(
max_length=10, choices=status_types, default="requested", editable=False
max_length=10,
choices=status_types,
default="requested",
)
approved_by = models.ForeignKey(
Employee,