Direct Print IPP & ZPL: send reports and labels to network printers
by Aerya IT Solutions https://aerya.net$ 93.13
In-App Purchases
Odoo 17, 18, 19 and 20, Community and Enterprise · Developed in the European Union by Aerya IT Solutions
Direct Print IPP & ZPL: send reports and labels to network printers
Print delivery slips, invoices and labels without the browser print dialog. The Odoo server sends the PDF over IPP to the office printer or the CUPS server, and the ZPL label over port 9100 to the label printer, with the tray and copies you chose. Rules can print on their own when a delivery is validated or an invoice is posted, and a queue retries when a printer is off.
Printer trays read from the printer, copies, test page
Print rules per report, user and company, printing on validation
Print queue with retries, error log and reprint
The screenshots use a fictitious company and invented customers. The printers in them are a test print server and a port 9100 listener that received the documents shown.
Runs on Odoo.sh and on-premise, not on Odoo Online (SaaS), where Odoo does not allow modules with Python code. Please buy the version that matches your database.
in Odoo 20, including runs against a real print server
no warnings
Odoo core modules only, Community and Enterprise
Where Odoo runs matters
The Odoo server connects to the printer, so the printer (or the CUPS server in front of it) must be reachable from the server's network. This works when Odoo runs in the same office network, or on a server joined to it by a VPN. An Odoo hosted in the cloud (Odoo Online, Odoo.sh, a remote server) cannot reach the printers of an office network without such a link: check this before you buy.
Your printers, from the Odoo server
IPP and IPPS for office printers, multifunction devices and CUPS servers (port 631), raw TCP port 9100 for ZPL label printers, ESC/POS receipt printers and office printers that take PDF on 9100.
Host, port, queue path, TLS with or without the certificate check, user name and password, timeout. The address field shows the URL the server will call.

Check printer and a test page
Check printer asks the printer over IPP for its state, make and model, the formats it accepts and its paper trays. The trays become records you choose in the print rules (letterhead in tray 2, labels in the manual feed).
Print test page sends a one-page PDF, a ZPL test label or an ESC/POS receipt, built by the module, so you know the connection works before the first real document.

Print rules per report
Choose a report, a printer, a tray and the number of copies, for everyone or for named users and per company. Leave the printer empty and the user's own printer is used: the label printer for text reports (ZPL), the document printer for PDF reports.
Add common rules prepares delivery slip, picking list, invoice and label rules, archived until you pick the printer.

Print when a document reaches a state
Delivery validated: the delivery slip comes out at the dispatch desk, twice. Invoice posted: the invoice prints on letterhead. Any document with a state field works, with an extra condition (only deliveries, only customer invoices).
The module creates a standard automation rule for each print rule and keeps it in step. The document is rendered and sent after the operation is saved, so a printer that is off never blocks a validation.

The Print menu sends it to the printer
For a report with a rule, Print sends the document to the printer instead of downloading it, and a notification says where it went. Reports without a rule download as usual.

A print queue that retries
Every document sent appears in the queue with its printer, copies, the user who asked, the printer's job id and the result. A printer that is busy, offline or does not answer gets new tries after 1, 5, 15 and 60 minutes, then the job is marked as failed.
Send again, Print again and Cancel on each job. Users see their own jobs, administrators all of them. Sent documents are kept 30 days for a reprint (setting).

Every try written down
The job keeps the document, the next try and a log line per attempt with the reason in plain words: connection refused, timeout, the printer's IPP status, wrong user name or password.

Default printers per user and per company
Each user picks a document printer and a label printer in their preferences; the company has its own in Settings. Rules without a printer use them.

Getting started
Add a printer in Direct Print, Configuration, Printers: its IP address or name, IPP or port 9100.
Check printer and Print test page: the trays appear and a page comes out.
Add print rules (or Add common rules): report, printer, tray, copies, on print or on validation.
Print from any document, or validate it: the queue shows each job and its result.
Compatibility
| Versions | Odoo 17, 18, 19 and 20 |
| Editions | Community and Enterprise |
| Modules | Automation Rules (base_automation); works with Inventory, Invoicing and any app with reports |
| Printers | IPP 1.1 / IPPS (network printers and CUPS servers that offer IPP), raw port 9100 (ZPL, ESC/POS, PDF) |
| Languages | English, Spanish, Romanian |
What it does not do
Stops with a clear message, never half-sent: a PDF report to a port 9100 printer set as ZPL or ESC/POS, a text report without a ZPL label to a ZPL printer, HTML reports, an automatic rule on a document without a state field, a rule without printer when neither the user nor the company has one, an archived printer.
Not covered: printers reachable only from a workstation (USB, Windows shared printers without IPP), cloud printing services, printing from the point of sale screen, converting PDF to ZPL. Only administrators set up printers and rules: the server connects to the addresses they enter.
Copies over IPP use the printer's copies attribute; over port 9100 the document is sent once per copy.
Explore our other apps
More modules by Aerya IT Solutions for Odoo 20, built to work together.
Questions or a custom quote?
Write to info@aerya.ro for questions about the module, its installation or custom development.
Developed in the European Union by Aerya IT Solutions, Odoo implementation and development. aerya.net
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
Discuss (mail)
|
| Lines of code | 2108 |
| Technical Name |
aerya_direct_print |
| License | OPL-1 |
| Website | https://aerya.net |
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module