Skip to content
Health
55/100
fair
  • Security25/25
    No findings
  • Activity20/25
    Last human commit 7 months ago
  • Required by5/25
    0 modules depend on it
  • Maturity5/25
    In 1 Odoo series since 19.0

Heuristic over the facts below, not an audit · How it's computed

Security findings
Grave / minor (static analysis)
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
OCA/report-print-send:
odoo/odoo:
- web
- bus
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 IDNameModelTypeStatus
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)
  • backend Selection
    ondelete={'websocket': 'cascade'} selection_add=[('websocket', 'WebSocket')]
  • websocket_user_id Many2one → res.users
    args: 'res.users'
Public methods (1)
  • print_document(self, report, content, action=None, doc_format='qweb-pdf', **kwargs)

Loading…