diff --git a/cmis_report_write/models/ir_actions_report.py b/cmis_report_write/models/ir_actions_report.py index 24ca49f2..16ecbfdf 100644 --- a/cmis_report_write/models/ir_actions_report.py +++ b/cmis_report_write/models/ir_actions_report.py @@ -219,7 +219,7 @@ def _get_cmis_filename(self, record): def _get_backend(self, record): self.ensure_one() if self.cmis_folder_field_id: - field = record._fields[self.cmis_folder_field_id.name] + field = record._fields[self.sudo().cmis_folder_field_id.name] return field.get_backend(self.env) return self.cmis_backend_id