report-print-send icon indicating copy to clipboard operation
report-print-send copied to clipboard

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

Open chrisandrewmann opened this issue 1 year ago • 1 comments

Originally created by @angelmoya for V14 ref: https://github.com/OCA/report-print-send/pull/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

chrisandrewmann avatar May 15 '24 15:05 chrisandrewmann

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[bot] avatar Sep 29 '24 12:09 github-actions[bot]