Community mailing list archives

community@mail.odoo.com

Re: POS Printer problem

by
Mario Arias Badila
- 11/04/2015 12:52:03

Yes,  they introduced some "magic" to detect usb printers, but I still use previous version,  as I had to fix several issues to make it work.
Anyway, updating printer.py should work...

Regards,
Mario

El 4/11/2015 11:17, "Alaney Kilson Dória" <alaney.doria@alien-group.com> escribió:

Thank you Mario, I think you might saved my day. My printer is actually a Bematech. I notice also that the file supported_devices.py was removed??


Best regards.

On 11/04/2015 06:02 PM, Mario Arias wrote:
<blockquote cite="mid:CANhvjXh2fhUGkUOQauH_oUKv09jgAQMkv1C-7DW_fSdPXSbyNg@mail.gmail.com" type="cite">

Hi Alaney,

By default PosBox uses endpoint x01 when opening the printer.

We had one case with Bematech printers that use endpoint x02, and triggered that error.

You need to fix the structure in supported_devices.py to include endpoint information,  or simply do a dirty fix modifying default out_ep on definition for usb "_init_"  on printer.py...

Regards,
Mario

El 4/11/2015 3:57, "Alaney Kilson Dória" <alaney.doria@alien-group.com> escribió:

Hi All,

Does anyone know the the solution for error " ValueError: Invalid endpoint address 0x1 on " on POS Box with printer? I'm trying to get a printer to work but I'm getting this error.

Best regards.

_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe

_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe


_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe