This commit is contained in:
XuanHuyen
2025-04-10 16:41:39 +07:00
parent 545e89ff1e
commit 049d002eb9
3 changed files with 44 additions and 4 deletions
@@ -15,7 +15,6 @@ class AttachmentPreviewController(http.Controller):
attachment_sudo = request.env["ir.attachment"].sudo().browse(attachment_id)
_logger.debug(f"✅ Guest env applied {attachment_sudo}")
attachment_sudo.public = True
if not attachment_sudo.exists():
raise NotFound()