Skip to content

Commit

Permalink
Merge branch '16.0' into 16.0-revised-install-modules
Browse files Browse the repository at this point in the history
  • Loading branch information
tarteo authored Nov 13, 2024
2 parents c3ec4fe + 8b50ad3 commit 5a5e9f8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions container_accessibility/models/res_users.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,11 @@ def _force_groups(self):
user.sudo().write({"groups_id": [Command.link(group_record.id)]})

def write(self, vals):
# FIXME: Quickfix, somewhere in super().create() another module writes the record.
# This should be fixed in create() but as there's a time limit i've done it like this
# you know how it goes sometimes
if not self.env.su:
self._force_groups()
res = super().write(vals)
# Disallow changing default access rights (for now)
# Changing groups in the default_user will change the groups in all internal users
Expand Down

0 comments on commit 5a5e9f8

Please sign in to comment.