Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

Disable PosBox Status Print

By
Wira Bakti Soenaryo
on 6/24/15, 3:22 AM 598 views

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.

1
T G
On 7/13/15, 9:09 PM

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


It works.... thank you.

Wira Bakti Soenaryo
on 7/14/15, 4:01 AM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

2 follower(s)

Stats

Asked: 6/24/15, 3:22 AM
Seen: 598 times
Last updated: 7/14/15, 4:01 AM