Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
4796 Visualizzazioni

How to disable the PosBox Status printing everytime the posbox rebooted. It waste a lot of paper if everyday the system is rebooted.

The posbox status I mean the IP address and Homepage infiormation that printed automatically everytime we turn on the posbox.

Avatar
Abbandona
Risposta migliore

Looks like all you have to do is comment it out and put in a pass statement (in bold below):

(excerpt from file on the posbox: /home/pi/odoo/addons/hw_escpos/controllers/main.py -Line 177 has call to comment)

Make sure to indent the pass with 4 spaces to align with old function call position.

elif task == 'xml_receipt':
if timestamp >= time.time() - 1 * 60 * 60:
printer.receipt(data)
elif task == 'cashbox':
if timestamp >= time.time() - 12:
self.open_cashbox(printer)
elif task == 'printstatus':
#self.print_status(printer)
pass

elif task == 'status':
pass
error = False


Avatar
Abbandona
Autore

It works.... thank you.

Post correlati Risposte Visualizzazioni Attività
0
feb 21
2783
3
ott 17
5772
0
nov 15
4520
1
ago 24
7481
1
dic 19
4585