Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
2846 Vizualizări


When I am in the POS and I have the posbox connected I get the following error:

2021-02-17 16:24:17,495 28562 INFO ? odoo.addons.hw_escpos.controllers.main: connected : Connected to Љ USB Receipt Printer (in=0x82,out=0x02)

2021-02-17 16:24:17,500 28562 INFO ? odoo.addons.hw_escpos.controllers.main: error : str() takes at most 1 argument (2 given)

2021-02-17 16:24:17,500 28562 ERROR ? odoo.addons.hw_escpos.controllers.main: ESC/POS Error: str() takes at most 1 argument (2 given)

2021-02-17 16:24:17,501 28562 ERROR ? odoo.addons.hw_escpos.controllers.main: str() takes at most 1 argument (2 given)

Traceback (most recent call last):

  File "/home/alejandro/odoo/addons/hw_escpos/controllers/main.py", line 169, in run

    printer.receipt(data)

  File "/home/alejandro/odoo/addons/hw_escpos/escpos/escpos.py", line 715, in receipt

    self.text(e) #errmsg

  File "/home/alejandro/odoo/addons/hw_escpos/escpos/escpos.py", line 818, in text

    txt = encode_str(txt)

  File "/home/alejandro/odoo/addons/hw_escpos/escpos/escpos.py", line 815, in encode_str

    buffer += encode_char(c)

  File "/home/alejandro/odoo/addons/hw_escpos/escpos/escpos.py", line 808, in encode_char

    encoded = bytes(encodings[encoding], 'utf-8') + encoded

TypeError: str() takes at most 1 argument (2 given)



I use Odoo version 11 on an ubuntu 18.04 where I also have the posbox installed (without rapsberry pi).


I am not able to find the solution. Some clue? Thank you!


Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
3
oct. 17
5856
0
nov. 15
4556
1
aug. 24
7541
1
dec. 19
4654
0
nov. 19
2886