Report to printer via WebSocket
base_report_to_printer_websocket · OCA/report-print-send
Health
55/100
fair
-
Security25/25No findings
-
Activity20/25Last human commit 7 months ago
-
Required by5/250 modules depend on it
-
Maturity5/25In 1 Odoo series since 19.0
Heuristic over the facts below, not an audit · How it's computed
Required by
0
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.06 MB
Module directory on disk
Code analysis
0 migration notes
2 models
1 view
0 HTTP endpoints
Description
This module extends base_report_to_printer to send print jobs through the Odoo Bus (WebSocket) instead of a traditional print server like CUPS.
When a report is printed, the module encodes the rendered PDF in Base64
and sends a print_job message through the bus to the user configured
on the printer. A client-side listener running as that user receives
the payload and forwards it to the local printer.
Main features:
- No external print server required — works over the existing Odoo Bus.
- Sends print jobs as Base64-encoded PDFs via WebSocket.
- Each printer is bound to a specific Odoo user, so jobs are delivered only to the right client-side agent.
- Compatible with the standard base_report_to_printer configuration (global, per user, per report, per user + report).
- Works with
odoo-print-client <https://pypi.org/project/odoo-print-client/>_ as the client-side agent to receive and print jobs.
Dependencies
- Odoo dependencies
- Python dependencies
- None
- System dependencies
- None
- Required by
- None
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 1
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
printing_printer_view_form_inherit_websocket |
printing.printer.form (in base_report_to_printer_websocket) | printing.printer | form | Inherits base_report_to_printer.printing_printer_view_form |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 2
New fields (0)
No new fields.
Public methods (0)No public methods.
New fields (2)
-
backendSelectionondelete={'websocket': 'cascade'}selection_add=[('websocket', 'WebSocket')] -
websocket_user_idMany2one → res.usersargs: 'res.users'
-
print_document(self, report, content, action=None, doc_format='qweb-pdf', **kwargs)
Loading…