Skip to content

Commit

Permalink
Do not remove fields, disable them when an invoice is archived
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiask committed Jun 21, 2024
1 parent c752b1b commit c31a613
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion workbench/invoices/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ def __init__(self, *args, **kwargs):
"status",
"payment_notice",
}:
self.fields.pop(field)
self.fields[field].disabled = True

if self.instance.status == Invoice.SENT:
self.fields["status"].choices = [
Expand Down

0 comments on commit c31a613

Please sign in to comment.