Community mailing list archives

community@mail.odoo.com

Re: POS Configuration V9

by
jov
- 09/29/2016 08:16:14
Hi Justice,

You're welcome. In case you do end up buying a new printer, the officially supported ones are listed on the POS page on our website [1].



Kind regards,
Joren


On Wed, Sep 28, 2016 at 3:35 PM, justice Nanhou <justice.nanhou@gmail.com> wrote:
Thanks you Joren.

i will try that. and if It still not works i will buy another one.

thanks you all. For the Help.
Justice Nanhou

2016-09-28 14:52 GMT+02:00 Joren Van Onder <jov@openerp.com>:
Hi,

You're using an unsupported printer, sometimes different printers use different endpoints. You could try to find out if this is the case and set them in the code [1]. People have had success doing this in the past [2].



Kind regards,
Joren


On Tue, Sep 27, 2016 at 3:18 PM, justice Nanhou <justice.nanhou@gmail.com> wrote:

Hi Martin,

thank you for you response.

i now update my pyusb package from pyusb==1.0.0 to pyusb==1.0.0b1

now i get another error.

-------------------------------------------------------------------------------------

2016-09-27 00:13:35,926 19339 ERROR ? openerp.addons.hw_escpos.controllers.main: ESC/POS Error: 'NoneType' object has no attribute 'bmAttributes'
2016-09-27 00:13:35,926 19339 ERROR ? openerp.addons.hw_escpos.controllers.main: 'NoneType' object has no attribute 'bmAttributes'
------------------------------------------------------------
Traceback (most recent call last):
  File "/home/justice/repo/odoo/addons/hw_escpos/controllers/main.py", line 168, in run
    self.print_status(printer)
  File "/home/justice/repo/odoo/addons/hw_escpos/controllers/main.py", line 202, in print_status
    eprint.text('\n\n')
  File "/home/justice/repo/odoo/addons/hw_escpos/escpos/escpos.py", line 826, in text
    self._raw(txt)
  File "/home/justice/repo/odoo/addons/hw_escpos/escpos/printer.py", line 68, in _raw
    if len(msg) != self.device.write(self.out_ep, msg, self.interface):
  File "/usr/local/lib/python2.7/dist-packages/usb/core.py", line 625, in write
    fn = fn_map[self._ctx.get_endpoint_type(self, endpoint, intf)]
  File "/usr/local/lib/python2.7/dist-packages/usb/core.py", line 180, in get_endpoint_type
    etype = util.endpoint_type(e.bmAttributes)
AttributeError: 'NoneType' object has no attribute 'bmAttributes'
------------------------------------------------------------

Thanks in advance


On 26.09.2016 11:17, Martin Trigaux wrote:
On 24/09/16 17:47, Justice wrote:
> i get an error saying "ESC/POS Error: The device does not support the > specified langid". Hi, Could you check which version of pyusb you have installed? The recommanded one is 1.0.0b1 Martin -- Martin Trigaux Odoo https://odoo.com https://github.com/mart-e

_______________________________________________
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


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