From 5f846e94a8151dd82b00f6d7e80d6c4ae634aa65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Mart=C3=ADnez?= Date: Fri, 14 Feb 2025 09:06:34 +0100 Subject: [PATCH] [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 --- rma/controllers/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rma/controllers/main.py b/rma/controllers/main.py index 7549882fa..164b37165 100644 --- a/rma/controllers/main.py +++ b/rma/controllers/main.py @@ -125,7 +125,7 @@ def portal_my_rma_picking_report(self, rma_id, picking_id, access_token=None, ** 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)),