diff --git a/payroll/forms/component_forms.py b/payroll/forms/component_forms.py index 701e6b9e3..106d958ca 100644 --- a/payroll/forms/component_forms.py +++ b/payroll/forms/component_forms.py @@ -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) diff --git a/payroll/models/models.py b/payroll/models/models.py index 4d39b6c0f..eb054c809 100644 --- a/payroll/models/models.py +++ b/payroll/models/models.py @@ -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,