[17.0][ADD] web_report_pdf_preview: Preview PDF reports in a dialog #1248
All Vouch review confidence checks passed
Residual risk 0.19 = Change Risk (0.35) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.35 · 164 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.305
Real PR Conversation Timeline
1 comments
"Review active on #1248"
general
weight: 0.35
rrebollo
@BInhexTeam
T26853
This module adds a Preview PDF option to PDF reports, unchecked by default. When it is checked, printing the report opens the PDF in a dialog with the Odoo PDF viewer instead of downloading it.
How it works
pdf_previewtravels with the report action, fromreport_action()and_get_readable_fields(), so the client makes no extra call to know it.ir.actions.report handlersregistry checks wkhtmltopdf as the standard download does, fetches the PDF once from/report/pdf/...with the user context merged with the action context, and shows it in aDialogwith pdf.js.blob:URL) in the browser viewer without generating it again. Closing the dialog releases it.close_on_report_download, the wizard is closed, as after a download.Known issues