Skip to content
Snippets Groups Projects
Commit e2d2d3aa authored by Demesmaeker's avatar Demesmaeker
Browse files

[FIX] website_sale_digital: fix misuse of self in a controller


Introduced in 51fd5d3c

closes odoo/odoo#120536

Signed-off-by: default avatarAntoine Vandevenne (anv) <anv@odoo.com>
parent 032493b7
No related branches found
No related tags found
No related merge requests found
......@@ -83,7 +83,7 @@ class WebsiteSaleDigital(CustomerPortal):
return redirect(self.orders_page)
try:
self.env['ir.attachment'].browse(attachment_id).check('read')
request.env['ir.attachment'].browse(attachment_id).check('read')
except AccessError: # The user does not have read access on the attachment.
# Check if access can be granted through their purchases.
res_model = attachment['res_model']
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment