[UPDT] PAYROLL: Remove Reimbursement model status field editable attribute, For list out field in Mail automation condition
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user