Skip to content

Commit

Permalink
[FIX] cmis_report_write: fix _get_backend.
Browse files Browse the repository at this point in the history
ir.model.fields are not accessible by users anymore, we need to use sudo
  • Loading branch information
jdoutreloux committed Feb 26, 2024
1 parent 34c892a commit 56dece7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmis_report_write/models/ir_actions_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 56dece7

Please sign in to comment.