Skip to main content

POS receipt printing via QZ Tray

Project description

Odoo Community Association

POS Printing QZ

Alpha License: AGPL-3 OCA/pos Translate me on Weblate Try me on Runboat

This module provides a pure-software alternative to the Odoo IoT Box for thermal receipt printing in the Point of Sale, using [QZ Tray](https://qz.io/) as the print driver.

It extends base_report_to_printer_qz — which adds QZ Tray backend support to printing.printer — and brings that functionality into the POS, allowing users to select a printer with backend = qztray directly from the POS configuration.

Key features:

  • Cash drawer support: the cash drawer open command (ESC p) is sent automatically after each receipt print.

  • No IoT Box required: designed as a software-only alternative for setups where deploying IoT infrastructure is not desirable.

Table of contents

Installation

This module requires the following non-Python dependency:

  • [QZ Tray](https://qz.io/) must be installed and running on the client machine that operates the POS.

Odoo module dependency (must be installed first):

  • base_report_to_printer_qz — provides the QZ Tray printer backend and the printing.printer model with backend = qztray support.

Python dependencies (installed automatically via external_dependencies):

  • python-escpos

Configuration

To configure this module, you need to:

  1. Install and launch the [QZ Tray](https://qz.io/) desktop application on the machine where the thermal printer is connected.

  2. In Odoo, go to Point of Sale > Configuration > Settings.

  3. Select your POS configuration and enable QZ Tray Printing.

  4. Optionally select a QZ Tray Printer from the list — only printers with backend = qztray (managed by base_report_to_printer_qz) are shown. If left empty, QZ Tray will use the system default printer.

  5. Save the settings and open the POS session.

To extend or customise the receipt template, inherit PosEscposController in your own module and override the relevant _get_* methods (e.g. _get_header, _get_order_lines). No frontend changes are required.

Usage

To use this module, you need to:

  1. Open a POS session that has QZ Tray Printing enabled.

  2. Make sure the QZ Tray desktop application is running on the POS machine.

  3. Process a sale and click Payment to print the receipt.

The receipt is sent directly to the thermal printer via QZ Tray. Receipt HTML is rendered to PNG and converted to ESC/POS format server-side before sending following native Odoo logic. The cash drawer is opened automatically after each print if enabled.

No IoT Box or network printer configuration is required.

Known issues / Roadmap

Bug Tracker

Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed feedback.

Do not contact contributors directly about support or help with technical issues.

Credits

Authors

  • APSL Nagarro

Contributors

Maintainers

This module is maintained by the OCA.

Odoo Community Association

OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

Current maintainer:

miquelalzanillas

This module is part of the OCA/pos project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file odoo_addon_pos_printing_qztray-19.0.1.0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for odoo_addon_pos_printing_qztray-19.0.1.0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b170a6d9fd96ef89d088fc096dbb0831cef425cf18e8da3c574ed91e7cbc453f
MD5 63b9da1f1b6ed6be7dc66961918f0ecc
BLAKE2b-256 596ab7a7032f38818ccc6fa351af0e4f8c493f7072a7d1a138da9dde65785781

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page