[FIX] rma: Allow to download the PDF of the picking from the RMA page

Related to https://github.com/OCA/rma/pull/444#pullrequestreview-2615705027
This commit is contained in:
Víctor Martínez
2025-02-14 09:06:34 +01:00
parent b18b69e7ac
commit 84b7d3aebd

View File

@@ -124,7 +124,7 @@ class PortalRma(CustomerPortal):
except exceptions.AccessError:
return request.redirect("/my")
report_sudo = request.env.ref("stock.action_report_delivery").sudo()
pdf = report_sudo._render_qweb_pdf([picking_sudo.id])[0]
pdf = report_sudo._render_qweb_pdf(report_sudo, res_ids=picking_sudo.ids)[0]
pdfhttpheaders = [
("Content-Type", "application/pdf"),
("Content-Length", len(pdf)),