Odoo Help

0

Unsupported Printer

By
Kyaw Soe Khaing
on 9/8/16, 12:35 PM 379 views

based on posbox guide , I can't find supported_devices.py and I also can't modify or add any files to that folder because
posbox image version 14 is readonly. Is there any way I can modify ?
when i use "lsusb" command in ssh terminal

i get the following 
Bus 001 Device 004: ID 0416:5011 Winbond Electronics Corp. Virtual Com Port ( this is my printer i think)
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp. 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
then i issue another command below
lsusb -vvv -d 0416:5011 | grep bEndpointAddress | grep OUT
bEndpointAddress     0x03  EP 3 OUT
how can i make this printer to work ?
I am using raspberry pi 3 Model B with posbox image version 14.Regards,
Soe Khaing
0
Chyn
On 12/20/16, 4:27 AM

Did you manage to resovle this?

I manage to add a star printer by runnign this command to first it writable

mount -o remount,rw /


The file you needed to modify is this. 

odoo/addons/hw_escpos/controllers/main.py

printers = usb.core.find(find_all=True, idVendor=0x0d3a)

change the 0x0d3a to your printer Vendor ID

in you case 0416

About This Community

This platform 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.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)

Stats

Asked: 9/8/16, 12:35 PM
Seen: 379 times
Last updated: 12/20/16, 4:27 AM