Merge pull request #2370 from expsa/dev_odex25_mobile

Dev odex25 mobile
This commit is contained in:
SamirLADOUI-sa 2025-02-12 15:06:56 +01:00 committed by GitHub
commit 3ad8bd67db
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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)