Skip to content

Commit

Permalink
[FIX] Access to ir.model.fields without sudo
Browse files Browse the repository at this point in the history
  • Loading branch information
glitchov authored Aug 23, 2024
1 parent b314817 commit 0977a49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmis_mail/wizards/mail_compose_message.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def default_get(self, fields): # pylint:disable=redefined-outer-name

def _get_cmis_parent_folder(self):
self.ensure_one()
field_name = self.cmis_folder_field_id.name
field_name = self.cmis_folder_field_id.sudo().name
related_record = self.env[self.model].browse(self.res_id)
field = related_record._fields[field_name]
cmis_backend = field.get_backend(self.env)
Expand Down

0 comments on commit 0977a49

Please sign in to comment.