Community mailing list archives

community@mail.odoo.com

Re: Need help with posbox for raspberrypi 2

by
Kingsley
- 05/31/2016 05:47:55
Solved Already. But incase any one has the same issue. This is what i did.
I noticed that the thermal printer could not print the comapnay logo, so what i did was to comment line with reference:
../odoo-9.0/addons/hw_escpos/escpos/escpos.py: line 676

This is the original code :
if 'src' in elem.attrib and 'data:' in elem.attrib['src']:
    self.print_base64_image(elem.attrib['src'])                 
 

Then this is what i did:
if 'src' in elem.attrib and 'data:' in elem.attrib['src']:
    #self.print_base64_image(elem.attrib['src'])                 
       pass

Thanks and Regards

On 30/05/2016 17:23, Kingsley Okonkwo wrote:
Hi community; 
I bought a raspberry pi 2 and followed the instructions on how to to create a posbox. Everything went fine. And i can connect to the thermal printer and barcode scanner and do some stuffs. On printing a point of sale receipt, the thermal printer keeps on printing the following error on the thermal paper without stopping.  Please what can i do to resolve this error: 
Error message printed on the thermal roll paper: 
"Trackback (most recent call last): 
File "/home/pi/odoo/addons/hw_escpos/escpos/escpos.py", line 700 , in receipt print_elem(stylestack, serializer, root) 
File "/home/pi/odoo/addons/hw_escpos/escpos/escpos.py", line 590, in print_elem(stylestack, serializer, child) 
File "home/pi/0 ..." 

I have tried resolving  printing error, by flashing the sd_card twice with recent and previous versions of the posbox image. 

Regards