تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
4784 أدوات العرض

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.

الصورة الرمزية
إهمال
أفضل إجابة

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.

المنشورات ذات الصلة الردود أدوات العرض النشاط
0
فبراير 21
2773
3
أكتوبر 17
5759
0
نوفمبر 15
4495
1
أغسطس 24
7470
1
ديسمبر 19
4575