You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
IoTBox: Connected CashBox Trying to pay a ticket on Point of Sale gets error and cannot open the cashbox TypeError: open_cashbox() takes 1 positional argument but 2 were given
#80339
Open
carlosecv opened this issue
Nov 24, 2021
· 2 comments
We are experiencing the same issue.
As a workaround you can disable the automatic opening of the cash-box. This lets the users work with no errors.
carlosecv
changed the title
IoTBox: Connected CashBox Trying to pay a ticket on Pint of Sale gets error and cannot open the cashbox TypeError: open_cashbox() takes 1 positional argument but 2 were given
IoTBox: Connected CashBox Trying to pay a ticket on Point of Sale gets error and cannot open the cashbox TypeError: open_cashbox() takes 1 positional argument but 2 were given
Dec 4, 2021
TypeError: open_cashbox() takes 1 positional argument but 2 were given
Impacted versions:
IoT Box 21.1
Odoo 14 and Odoo 15
Iot Box Raspberri PI 3 Model B
Printer EPSON TM-T20 II
Cash box connected to Printer
Steps to reproduce:
Do a sale on POS then try to pay on Cash to get Change
Current behavior:
Then error trying to open Cashbox:
Odoo Server Error
Traceback (most recent call last):
File "/home/pi/odoo/odoo/http.py", line 1459, in _dispatch_nodb
File "/home/pi/odoo/odoo/http.py", line 687, in dispatch
File "/home/pi/odoo/odoo/http.py", line 360, in _call_function
File "/home/pi/odoo/odoo/http.py", line 916, in call
File "/home/pi/odoo/odoo/http.py", line 535, in response_wrap
File "/home/pi/odoo/addons/hw_drivers/iot_handlers/drivers/PrinterDriver.py", line 269, in default_printer_action
File "/home/pi/odoo/addons/hw_drivers/driver.py", line 52, in action
Exception
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/pi/odoo/odoo/http.py", line 643, in _handle_exception
File "/home/pi/odoo/odoo/http.py", line 301, in _handle_exception
TypeError: open_cashbox() takes 1 positional argument but 2 were given
Expected behavior:
Open the cashbox without error
If i execute on my linux box this command:
echo -e -n "\x1b\x70\x00\x19\xfa" | lpr -o raw -P TM-T20II
The cashbox is opened without problem
TM-T20II is the exact name as listed by the command: lpstat -p
Video/Screenshot link (optional):
WhatsApp.Video.2021-11-24.at.9.31.34.AM.mp4
Support ticket number submitted via odoo.com/help (optional)
:
The text was updated successfully, but these errors were encountered: