Commit Graph

33 Commits

Author SHA1 Message Date
Olivier Dony f431cee99a
[FIX] hw_escpos: increase timeout for slow matrix printers
Some printers (e.g. matrix/impact printers) may have a hard time
keeping up with the text output, and may trigger timeout errors
because of this, even though they would otherwise produce a correct
result.

Increasing the default timeout to 5s (from the default 1s) should
take care of most slow printers out there.
2017-01-27 14:42:36 +01:00
Olivier Dony 8e8b7925d2
[FIX] hw_escpos: auto-detect endpoint address
Instead of hardcoding the IN & OUT endpoint
addresses for the ESC/POS printers, we now
attempt to auto-detect them.

This should increase compatibility with many
compatible thermal printers that are simply
using a different address, such as the
- STMicroelectronics POS58 Printer USB
- HU HAI SUNCSW Receipt Printer Co.,Ltd. Gprinter USB Printer

Fixes #12890
2016-11-16 14:52:34 +01:00
Stefan Rijnhart 04765d4917 [FIX] hw_escpos: RBG images do not necessarily have an alpha channel 2016-04-19 15:34:45 +02:00
Joren Van Onder ad727be267 [FIX] hw_escpos: don't try too hard to close a printer
Although it might be a good idea to make sure a printer device is
properly closed, trying for >1 min to do so is too much. It can cause a
>1 min delay between receiving a receipt and actually printing. Also,
just because the device is not cleanly closed does not mean that it will
not work when we open it again.
2015-09-17 09:26:33 +02:00
Joren Van Onder 1440dc1c96 [IMP] hw_escpos: don't replace a USBError exception with some string
There's absolutely no point to hiding exceptions like this, it makes
debugging more difficult than it has to be.
2015-09-17 09:26:33 +02:00
Joren Van Onder e7c51228f3 [IMP] hw_escpos: get rid of printer whitelist
It makes more sense to just look for usb devices that identify as a
printer and use whatever we get. This saves us time having to explain to
users how to add their particular printer to the whitelist to test.
2015-08-26 15:12:39 +02:00
谢立 8fe042ea91 [FIX] hw_escpos: xmlescpos add cp936(GBK) encoding support
Add support for Chinese fonts by adding the cp936(GBK) encoding

Closes #6845
2015-07-02 10:43:21 +02:00
Antony Lesuisse af3a8ada58 [FIX] hw_escpos copyright notice
In v9 we will plan remove the lib and replace it by an optionnal import.
2015-02-10 14:24:54 +01:00
Martin 3cf45e1111 [FIX] hw_escpos: Backport driver robustness 2015-02-10 13:24:59 +01:00
Thomas Rehn af905d0797 [FIX] implement pre-ordering of ESCPOS commands 2014-12-08 19:35:16 +01:00
Frédéric Van der Essen 02bdbee088 Merge pull request #3009 from initOS/8.0-fix_escpos_with_non_rgba_image
Bug: Exception when printing POS receipt via hardware proxy
2014-12-01 15:55:17 +01:00
Thomas Rehn 7659da9fd8 improve patch according to reviewer's suggestion 2014-11-19 10:13:54 +01:00
Frederic van der Essen 6111cf9873 [FIX] hw_escpos: use logger instead of prints to avoid corrupting the odoo.py command line interface. 2014-11-18 19:03:20 +01:00
Thomas Rehn 93dc416dd3 only use alpha channel if it exists 2014-10-09 18:05:09 +02:00
Christophe Simonis 8046b7367d [MERGE] forward port of branch saas-5 up to 7e117b1 2014-08-28 16:51:11 +02:00
Christophe Simonis 7e117b18a0 [MERGE] forward port of branch saas-3 up to ada9724 2014-08-28 16:21:27 +02:00
TheCloneMaster 4b446550c6 [FIX] hw_escpos: Replaced "tab" by space
call to self.open() had a tab instead of spaces
2014-08-25 18:08:40 +02:00
Dimitri del Marmol b021330f0e [MERGE] Bzr branch lp:~openerp-usertesting/openobject-addons/trunk-restaurant-wip-fva 2014-06-13 16:19:05 +02:00
Martin Trigaux 583fe74ba2 Forward-port of latest saas-3, up to revision 9455 (rev-id mat@openerp.com-20140514080416-m4t23y0rxx2ot7y6) 2014-05-14 10:37:54 +02:00
Denis Ledoux d2716e2db9 [ADD] hw_escpos: TM-T20II printer added in supported device list
bzr revid: dle@openerp.com-20140512074150-9wepj7andgwrgj7x
2014-05-12 09:41:50 +02:00
Frédéric van der Essen 4745099706 [FIX] hw_escops, point_of_sale: backporting fixes from the pos-restaurant branch
bzr revid: fva@openerp.com-20140328134401-ao85rr8b29nqg626
2014-03-28 14:44:01 +01:00
Frédéric van der Essen b206261dd5 [IMP] hw_escpos: re-enabled image printing in xml receipts
bzr revid: fva@openerp.com-20140320170955-ekgya8pcv2wljhl8
2014-03-20 18:09:55 +01:00
Frédéric van der Essen a4afb910e9 [IMP] hw_escpos / point_of_sale: print receipt with an xml template
bzr revid: fva@openerp.com-20140320164530-odpeuf1igh7wkrms
2014-03-20 17:45:30 +01:00
Frédéric van der Essen 53f02309ed [IMP] hw_escpos: print_xml_receipt() controller allows you to print an xml defined receipt
bzr revid: fva@openerp.com-20140320112720-ldshe2764z3fyfvi
2014-03-20 12:27:20 +01:00
Frédéric van der Essen d5a730a0b3 [WIP] hw_escpos: printing client-side defined xml templates
bzr revid: fva@openerp.com-20140317132906-uyr7h1oce8pptny9
2014-03-17 14:29:06 +01:00
Frédéric van der Essen ba2d4c9030 [IMP] point_of_sale, hw_escpos: hopefully much faster printing on the posbox by caching logo conversion
bzr revid: fva@openerp.com-20140130182109-11njt0khmylp0r7p
2014-01-30 19:21:09 +01:00
Frédéric van der Essen d88b10fd07 [IMP] hw_escpos: moved list of supported printers to a separate file
bzr revid: fva@openerp.com-20140129163259-xdarcaw4qcqprvt6
2014-01-29 17:32:59 +01:00
Frédéric van der Essen ee3fa52bbe [IMP] hw_escpos: codepage switch sequence for all encodings supported by the TM-T20 printer
bzr revid: fva@openerp.com-20140124173119-naktj3usjuapb9sf
2014-01-24 18:31:19 +01:00
Frédéric van der Essen 2131aaa48f [MERGE] from trunk
bzr revid: fva@openerp.com-20140115171732-2uh1mgmseaag34qy
2014-01-15 18:17:32 +01:00
Xavier Morel e761b40a04 [FIX] pillow-compatible Image import
bzr revid: xmo@openerp.com-20140114125342-1l9smyz7woh8fg6t
2014-01-14 13:53:42 +01:00
Frédéric van der Essen 6d6708f6ac [IMP] hw_escpos: do not crash on module loading if there are missing python dependencies
bzr revid: fva@openerp.com-20140114103117-1930rki63u7alm26
2014-01-14 11:31:17 +01:00
Frédéric van der Essen bf650fa07a [IMP] hw_escpos: basic support for japanese receipt and open cashdrawer
bzr revid: fva@openerp.com-20131226165620-6262zfqyxxyryxo0
2013-12-26 17:56:20 +01:00
Frédéric van der Essen e95ea35caa [IMP] hw_escpos: company logo on receipt and multi-lingual receipt support
bzr revid: fva@openerp.com-20131224151112-3svn5wm1wyf71wim
2013-12-24 16:11:12 +01:00