diff --git a/odex25_mobile/odex_mobile/controllers/rest_api_v2/content_common.py b/odex25_mobile/odex_mobile/controllers/rest_api_v2/content_common.py index e7dd89350..af9cc3df9 100644 --- a/odex25_mobile/odex_mobile/controllers/rest_api_v2/content_common.py +++ b/odex25_mobile/odex_mobile/controllers/rest_api_v2/content_common.py @@ -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)