OCA / pos

GNU Affero General Public License v3.0
278 stars 602 forks source link

[14.0] Receipt print with QZ Tray #710

Closed angelmoya closed 2 years ago

angelmoya commented 3 years ago

Hi, I'm testing alternatives to print receipt without posbox (iotbox) or direct print.

https://qz.io/

I tested QZ tray, that has two components.

  1. Java app that you need to install on POS (Linux, Windows or Mac OS)
  2. Javascript library that must be integrated on Odoo POS

I was testing receipt printing on POS, but I noticed that is printing receipt as image instead of raw ESCPOS printing.

This work is in progress but if someone want to check or have better solution we can talk about

legalsylvain commented 3 years ago

Hi @angelmoya.

I don't know qz. It seems interesting !

At GRAP, we are using "pseudo OCA" library, named pywebdriver. it is hosted by akretion, used by some OCA companies, like Acsone.

here you can find the lib https://github.com/akretion/pywebdriver/

The point 2 is not required in pywebdriver. (the objective is to emulate a pos/awesome/iot/box but in a keep it simple logic.

feel free to contribute, if you are interested.

angelmoya commented 3 years ago

Thanks for the info @legalsylvain , did you do raw EXCPOS ticket printing?

legalsylvain commented 3 years ago

Thanks for the info @legalsylvain , did you do raw EXCPOS ticket printing?

I think @PierrickBrun is the right person to answer you.

PierrickBrun commented 3 years ago

Hi @angelmoya . In pywebdriver Raw Esc/Pos works but Odoo POS only sends images starting from v13.0.

b64 images embedded in escpos works well tbh. But you could also generate esc/pos xml and send it if you really needed to (like in v12.0)

github-actions[bot] commented 2 years ago

There hasn't been any activity on this issue in the past 6 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 issue to never become stale, please ask a PSC member to apply the "no stale" label.