| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
Discuss (mail)
|
| Community Apps Dependencies | Show |
| Lines of code | 964 |
| Technical Name |
product_label_print_oer |
| License | LGPL-3 |
| Website | https://www.oduers.com/ |
OER Direct Web Print
Instant Browser Printing Route and Automated Print Dialog Triggering
1. Introduction
The OER Direct Print module complements the label engine by optimizing user workflows. It eliminates the traditional requirement of downloading PDFs and launching separate Adobe or preview programs. Instead, it renders the label layout directly, persists it momentarily in storage, and opens a lightweight web page that triggers the browser's system print dialog automatically.
2. Installation
Requirements:
- Make sure
product_label_oeris active. - Put the
product_label_print_oermodule folder inside your addons directory. - Search for OER Direct Print in Apps and click Activate.
3. Configuration Settings
Configure user-level settings in Odoo to support immediate printing:
- Immediate Printing: When this field is active on a user record, launching print actions bypasses settings views and routes directly to the instant viewer.
4. Main Features
- Instant Print Triggers: Automatically displays browser-native print layout.
- Short-lived Attachments: Creates temporary attachments to render previews safely.
- Auto-Vacuum Cleanup: Programmatic cron automatically deletes printed label files older than 24 hours to prevent storage inflation.
- Dual Viewport: Incorporates full-screen preview alongside a hidden iframe trigger script.
5. How to Use
- Select products on active views and trigger the OER print wizard.
- If immediate printing is configured: the browser opens a new tab, displays the PDF, and immediately pops up the system print dialog.
- If immediate printing is disabled: clicking print inside the wizard will generate the PDF and display the viewer tab immediately.
6. Technical Route Details
The backend router serves files at:
/oer_label_viewer/<attachment_id>
The route renders product_label_print_oer.instant_print_viewer_page template, which encapsulates the target PDF binary and initiates printing through custom JavaScript trigger functions.
7. Access & Security
The viewer route enforces standard Odoo session verification (auth="user"). It validates that the requested document matches the exact name signature OER Instant Label Output and mimetype before serving it.
8. FAQ
Q: Does this work on mobile devices?
A: Yes. Mobile web browsers supporting print calls will open the default OS print controls automatically.
9. Troubleshooting
Browser Popup Blocked Warnings
Ensure browser popup blocker exceptions are added for your Odoo URL to allow print preview tabs to load automatically.
10. Conclusion
The OER Direct Print module significantly reduces print execution times, maximizing overall operator throughput at fulfillment stations.
Please log in to comment on this module