add patch for drawer opening
This commit is contained in:
parent
37e8c342a7
commit
b1a339dd33
|
@ -87,7 +87,9 @@ RUN patch -p0 /usr/local/lib/python3.5/dist-packages/v4l2.py < /tmp/python-v4l2
|
||||||
# Disable log messages about disconnected drivers - unneeded and clutters logfile with useless messages
|
# Disable log messages about disconnected drivers - unneeded and clutters logfile with useless messages
|
||||||
&& patch -p0 /usr/lib/python3/dist-packages/odoo/addons/hw_escpos/controllers/main.py < /tmp/disable-disconnected-logging.patch \
|
&& patch -p0 /usr/lib/python3/dist-packages/odoo/addons/hw_escpos/controllers/main.py < /tmp/disable-disconnected-logging.patch \
|
||||||
# Add cashbox networking support
|
# Add cashbox networking support
|
||||||
&& patch -p0 /opt/posbox/addons/hw_printer_network/controllers/hw_printer_network_controller.py < /tmp/cashbox-net.patch
|
&& patch -p0 /opt/posbox/addons/hw_printer_network/controllers/hw_printer_network_controller.py < /tmp/cashbox-net.patch \
|
||||||
|
# Remove fix from https://github.com/odoo/odoo/pull/35368 as this breaks network printing
|
||||||
|
&& patch -p0 /usr/lib/python3/dist-packages/odoo/addons/hw_escpos/escpos/escpos.py < /tmp/remove_get_printer_status.patch
|
||||||
|
|
||||||
## Cannot switch to Odoo as CUPS must run as root and CUPS must run - otherwise IoTBox complains
|
## Cannot switch to Odoo as CUPS must run as root and CUPS must run - otherwise IoTBox complains
|
||||||
#USER odoo
|
#USER odoo
|
||||||
|
|
|
@ -0,0 +1,11 @@
|
||||||
|
--- escpos.py.orig 2019-08-27 10:48:53.402884574 +0200
|
||||||
|
+++ escpos.py 2019-08-27 10:49:01.762946864 +0200
|
||||||
|
@@ -908,8 +908,6 @@
|
||||||
|
else:
|
||||||
|
raise CashDrawerError()
|
||||||
|
|
||||||
|
- self.get_printer_status()
|
||||||
|
-
|
||||||
|
def hw(self, hw):
|
||||||
|
""" Hardware operations """
|
||||||
|
if hw.upper() == "INIT":
|
Reference in New Issue