Skip to Content
osloop_direct_print

Direct Print

Opens any PDF report in the browser print preview instead of downloading the file first.

  • Odoo 19
  • Reports
  • 19.0.1.0.0
1

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.

2

Usage steps

  1. 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. 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. 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. 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. 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.
4

Roles

Benefiting roles
Role
Cashier or front-desk user printing documents
Accountant printing reports
Administrator enabling the setting
5

Dependencies

  • web
  • base_setup

Want to know more or try this app? Contact us

Opens any PDF report in the browser print preview instead of downloading the file first.

Contact us