Skip to content

Commit

Permalink
Merge pull request #128 from dibik96/17.0-develop
Browse files Browse the repository at this point in the history
Added readonly to fix issue in related field odoo17
  • Loading branch information
shibu-narayanan authored Mar 1, 2024
2 parents a9a9d5e + b8aaff5 commit 01f510c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions g2p_registry_membership/models/group_membership.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ class G2PGroupMembership(models.Model):
store=True,
)
is_ended = fields.Boolean(default=False, compute="_compute_is_ended", store=True)
individual_birthdate = fields.Date(related="individual.birthdate")
individual_gender = fields.Selection(related="individual.gender")
individual_birthdate = fields.Date(related="individual.birthdate", readonly=True)
individual_gender = fields.Selection(related="individual.gender", readonly=True)

@api.onchange("kind")
def _kind_onchange(self):
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# generated from manifests external_dependencies
extendable-pydantic
schwifty
schwifty

0 comments on commit 01f510c

Please sign in to comment.