669ba0fd8a1d20df56bf9ba6cd547f541ba6deae
The FP sale report template (report_fp_sale_portrait) walks into fp.part.catalog records, which portal users don't have ACL on - they'd hit 'You are not allowed to access Fusion Plating - Part Catalog' when rendering. Standard /report/pdf/ route runs as the authed user, so the template traversal fails. Mirror the portal_download_coc pattern: gate on _document_check_access for the portal job (customer can only ever reach their own data), then render the report via ir.actions.report.sudo()._render_qweb_pdf so the QWeb template traversal bypasses ACL. Return the PDF as an attachment with a friendly filename. Updates _fp_group_documents to point the From-You SO Confirmation link at this new route instead of /report/pdf/ directly. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Description
Odoo 19 custom modules
Languages
Python
55.9%
HTML
26.1%
JavaScript
14.9%
SCSS
1.8%
CSS
0.8%
Other
0.4%