mirror of
https://github.com/OCA/rma.git
synced 2025-02-16 17:11:47 +02:00
[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:
@@ -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)),
|
||||
|
||||
Reference in New Issue
Block a user