Availability |
Odoo Online
Odoo.sh
On Premise
|
Lines of code | 45 |
Technical Name |
cbu_pdf_viewer_readonly_widget |
License | LGPL-3 |
Website | https://codebyus.net/ |
Versions | 16.0 17.0 18.0 |
Availability |
Odoo Online
Odoo.sh
On Premise
|
Lines of code | 45 |
Technical Name |
cbu_pdf_viewer_readonly_widget |
License | LGPL-3 |
Website | https://codebyus.net/ |
Versions | 16.0 17.0 18.0 |
PDF Viewer Readonly Widget
A secure PDF viewer widget for Odoo 16 that prevents document downloading, printing, and editing - while still allowing document viewing.
Key Features
- Secure Document Viewing: Display PDFs without allowing downloads
- Download Prevention: Users can view but cannot download PDF files
- Print Restriction: Disables printing functionality
- Read-Only Mode: Full PDF viewing capabilities in a secure environment
- Simple Integration: Easy to implement in any Odoo form view
- Native Integration: Seamlessly integrates with Odoo 16 UI
Use Cases
- Sensitive Documents: HR policies, legal agreements, confidential reports
- Controlled Access: Allow reading without risking data exfiltration
- Compliance Requirements: Meet data protection standards while maintaining access
- Customer Portals: Share documents securely with external users
Implementation
Simply use the widget in your form view to display PDFs in read-only mode.
Basic Usage
<field name="your_binary_pdf_field" widget="pdf_viewer_readonly"/>
Screenshots
Normal PDF viewer workflow

Limited options in read-only mode

Download and print functionality disabled

Technical Details
This widget is built on PDF.js technology with specialized modifications to enforce read-only behavior. It extends Odoo's standard PDF viewer with enhanced security features, preventing users from downloading, printing, or extracting the document content while maintaining the ability to view the PDF.
Compatibility
Odoo Version | Module Version |
---|---|
16.0 | 16.0.1.0.0 |
Credits
Role | Name |
---|---|
Author | CodeByUs |
License | LGPL-3.0-or-later |
Icon | Custom-generated (DALL·E + Odoo 16-style) |
Need help?
Contact us for support or implementation assistance.
Please log in to comment on this module