Overview
By default Odoo downloads a PDF report and the user must open the file before printing it. This module adds a single company setting that sends every PDF report straight to the browser print preview. It works from the Print menu and from any button that returns a report action. HTML and text reports keep the standard Odoo behaviour. If direct printing fails, the module falls back to the normal PDF download and shows a warning, so the user is never blocked.
Usage steps
- 1
Enable the setting
Go to Settings > General Settings > Printing and turn on Direct print.
- The option is off by default.
- It is stored separately for each company.
- 2
Save and reload
Save the settings, then reload the web client so the session picks up the change.
- Company switches also need the session to be current.
- With the option off, standard PDF download is used.
- 3
Print any report
Open a record and choose a report from the Print menu, or click a button that returns a report action.
- The PDF opens in the browser print preview.
- The preview uses a zero-size frame, so the screen is not disturbed.
- 4
Fallback when printing fails
If direct printing fails, Odoo downloads the PDF and shows a warning message.
- If wkhtmltopdf cannot produce a PDF, the standard report handler takes over.
- The interface is never left blocked.
- 5
Opt out for a specific action
A developer can add the osloop_force_download key to a report action context to bypass this handler.
- The presence of the key opts out, even if its value is false.
- Reports of OSLOOP Vehicle Workshop follow that module's own print-mode setting.
Screens
Illustrative mockups with placeholder data.
—
Printing
PDF report in print preview
Report content (unchanged) Placeholder value
Roles
| Role |
|---|
| Cashier or front-desk user printing documents |
| Accountant printing reports |
| Administrator enabling the setting |
Dependencies
- web
- base_setup
Related applications
Applications that work together with this one.
Print Studio
Print Studio handles print options and runs before this module's handler.
osloop_print_studioVehicle Workshop
Its reports follow the workshop's own print-mode setting even when direct print is on.
osloop_vehicle_workshopThermal Receipt
The 80mm thermal receipt PDF can be printed through the same browser preview.
osloop_thermal_receiptJournal Entry Print
Another printing-focused module in the same reports area.
osloop_journal_entry_printWant to know more or try this app? Contact us
Opens any PDF report in the browser print preview instead of downloading the file first.