[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 f078686a91
commit 5f846e94a8

View File

@@ -125,7 +125,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)),