From 0977a49a88fd09b9e933922dc56eac7528fada01 Mon Sep 17 00:00:00 2001 From: Hughes Damry Date: Fri, 23 Aug 2024 14:15:36 +0200 Subject: [PATCH] [FIX] Access to ir.model.fields without sudo --- cmis_mail/wizards/mail_compose_message.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmis_mail/wizards/mail_compose_message.py b/cmis_mail/wizards/mail_compose_message.py index b27b41f6..f4509508 100644 --- a/cmis_mail/wizards/mail_compose_message.py +++ b/cmis_mail/wizards/mail_compose_message.py @@ -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)