[FIX] odex_mobile: remove instruction that makes an attachment public

This commit is contained in:
Samir Ladoui 2025-02-12 15:04:39 +01:00
parent e995568c83
commit 3ea8fab104
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ class MyController(http.Controller):
# Access the binary content of the attachment
if model == 'ir.attachment':
attachment = request.env['ir.attachment'].sudo().browse(int(id))
attachment.public = True
# attachment.public = True
status, headers, content = request.env['ir.http'].sudo().binary_content(
xmlid=xmlid, model=model, id=id, field=field, unique=unique, filename=filename,
filename_field=filename_field, download=download, mimetype=mimetype, access_token=access_token)