Skip to content
Snippets Groups Projects
Commit c212661d authored by Juliana's avatar Juliana
Browse files

[FIX]Issue rights documents upload

parent 9a6f58e6
No related branches found
No related tags found
No related merge requests found
......@@ -107,7 +107,7 @@ class AccAccountMain(CustomerPortal):
)
else:
domain = [("res_model", "=", "acc.account"), ("res_id", "=", invoice_id)]
doc_id = request.env["ir.attachment"].search(domain, limit=1)
doc_id = request.env["ir.attachment"].with_user(SUPERUSER_ID).search(domain, limit=1)
if not doc_id:
return Response(
_("Aucun document n'est disponible à cette URL."), status=404
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment