Skip to Content
PDF Report Password Protection
pdf_report_password_protection

PDF Report Password Protection

Encrypts a PDF report with a password set on the report action.

  • Odoo 17
  • Reports
  • 17.0.1.0.0
1

Overview

Sensitive documents such as payslips or invoices should not be opened by whoever receives the file. This module adds an Enable Password option and a Password field to the report action. The report controller intercepts the PDF download and applies encryption before returning it. It depends on base and web, and applies to any report the administrator chooses.

2

Usage steps

  1. 1

    Open the report action

    Go to Settings, Technical, Reports and open the report to protect. The form has two new fields. Only administrators in technical mode see it.

    • Model: ir.actions.report
    • Technical mode required
  2. 2

    Enable the password

    Tick Enable Password and enter the Password. Save the report. From then on the PDF of this report is encrypted.

    • Fields: Enable Password, Password
    • Per report setting
  3. 3

    Print or download the report

    A user prints the report from the usual Print menu. The overridden report route /report/pdf generates the PDF as usual. The controller then passes the content to the protection method.

    • Route report_routes overridden
    • Standard Print menu
  4. 4

    Open the protected file

    The downloaded PDF asks for the password when opened. Share the password with the recipient by a separate channel. Reports without the flag stay unencrypted.

    • Method apply_password_protection
    • Other reports unaffected
4

Roles

Benefiting roles
Role
System administrator
Report users
5

Dependencies

Back to version applications

Want to know more or try this app? Contact us

We can arrange a demo or a trial and answer your questions about PDF Report Password Protection.

Contact us