[19.0][ADD] pos_printing_qztray: New Module#1537
Open
miquelalzanillas wants to merge 1 commit into
Open
Conversation
64726c0 to
c30d951
Compare
Contributor
|
Thanks for your module, I have a question : |
f28a58c to
e2d885b
Compare
Author
Hello @cvinh , No for the moment but I think it can be implemented with not too much effort. |
e2d885b to
800470a
Compare
800470a to
388500c
Compare
65d9122 to
9587b85
Compare
9587b85 to
329844e
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
POS Printing QZTray
This module provides an alternative to the Odoo IoT Box for thermal receipt printing in the Point of Sale, using QZ Tray as the print driver.
It extends the existing base_report_to_printer_qz module — 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.
What this module does?
ESC/POS receipt template using python-escpos library: controllers/main.py contains a full receipt template that generates ESC/POS commands server-side using python-escpos. The template is easily extendable and inheritable from Python without touching any frontend code.
PNG fallback: When no order can be matched (e.g. reprints from the Ticket Screen), the standard HTML receipt is rendered to a raster PNG and converted to ESC/POS format.
Cash drawer support: Sending the cash drawer open command (ESC p) is supported out of the box.
No IoT Box required: The module is designed as a pure-software alternative to the IoT Box, suitable for setups where deploying IoT infrastructure is not desirable.
Configuration
Install and run QZ Tray on the POS machine.
Go to Point of Sale > Configuration > Settings.
Enable QZ Tray Printing and optionally select a printer with backend qztray. If left empty, the system default printer is used.
@angelmoya @cubells @ppyczko @BernatObrador