Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ADD] base_report_to_qz: new module to print with QZ Tray #357

Open
wants to merge 1 commit into
base: 16.0
Choose a base branch
from

Conversation

chrisandrewmann
Copy link

Originally created by @angelmoya for V14 ref: #270
Migrated to 16.0 with changes noted below.


Module works, but could be nice to improve.

I push because I think that module could be good alternative to base report_to_printer, and maybe someone wants to colaborate.

QZ Tray allow to print over html, this way users can use local printers with Odoo.

You can install QZ Tray on Linux, Windows or Mac computer, and I'm not sure, but I read about use with android.

QZ Tray is LGPL 2.1 licensed, you can buy support to get certificates, but you can use your own certificates.

On Install.md I try to explain how to install, you need generate your own certificate, an configure in Odoo and QZ Tray.

Module works, but as I said it could be improve:

  • Can print pdf or txt, I only tested txt as escpos raw printing... it's needed to test zpl or txt print.
  • tests must be done
  • pre-commit get errors, related with qz-tray.js that is the original library, and related with js code and requiremet OpenSSL.
  • at this moment you need to write the name of the printer, could be nice to create a widget show local printers and select one (js code is quite simple).

@chrisandrewmann changes:

  • Made the user_id not required on printing.report.qz.tray - This way you can set a default for ALL users
  • Updated to support new OWL action report handler and frontend logic
  • Added ability to specify a remote server location (IP) for the printer, so it doesn't have to work only locally
  • Tested with both PDF and ZPL using "Virtual ZPL Printer" - All looks good

Copy link

There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days.
If you want this PR to never become stale, please ask a PSC member to apply the "no stale" label.

@github-actions github-actions bot added the stale PR/Issue without recent activity, it'll be soon closed automatically. label Sep 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale PR/Issue without recent activity, it'll be soon closed automatically.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant