Skip to content

Commit

Permalink
[IMP] Set birthdate to required on sub request
Browse files Browse the repository at this point in the history
The birthdate is necessary for some later cooperator actions, so it must be set as required.
  • Loading branch information
victor-champonnois committed Feb 8, 2024
1 parent d0b0fb2 commit 90e0727
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cooperator/models/subscription_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ def _compute_subscription_amount(self):
birthdate = fields.Date(
string="Date of birth",
readonly=True,
required=True,
states={"draft": [("readonly", False)]},
)
gender = fields.Selection(
Expand Down

0 comments on commit 90e0727

Please sign in to comment.