[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:
|
class Meta:
|
||||||
model = Reimbursement
|
model = Reimbursement
|
||||||
fields = "__all__"
|
fields = "__all__"
|
||||||
exclude = ["is_active"]
|
exclude = ["is_active", "status"]
|
||||||
|
|
||||||
def __init__(self, *args, **kwargs):
|
def __init__(self, *args, **kwargs):
|
||||||
super().__init__(*args, **kwargs)
|
super().__init__(*args, **kwargs)
|
||||||
|
|||||||
@@ -1629,7 +1629,9 @@ class Reimbursement(HorillaModel):
|
|||||||
)
|
)
|
||||||
amount = models.FloatField(default=0)
|
amount = models.FloatField(default=0)
|
||||||
status = models.CharField(
|
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(
|
approved_by = models.ForeignKey(
|
||||||
Employee,
|
Employee,
|
||||||
|
|||||||
Reference in New Issue
Block a user