Friday, November 8, 2024
1 change · 17.0
Resolved issues and error corrections
A serial device error on the IoT box no longer leaves connected point-of-sale operations blocked until a restart. The device status is cleared after it is reported once, so new checkout actions receive the correct current result instead of being affected by an earlier error.
Original PR description
Before this commit, when an error happened on a serial device, the serial driver on the IoT box would permanently set its status to ERROR and not accept any additional request until reboot of the IoT…
Before this commit, when an error happened on a serial device, the serial driver on the IoT box would permanently set its status to ERROR and not accept any additional request until reboot of the IoT box. This causes confusion, among other things in the special case of BlackBox BE, where some points of sales have multiple checkouts using the same POs session and the same IoT Box + BlackBox. If at any point, a cashier sent an erroneous message to the IoT Box or to the Blackbox, all checkouts would become blocked, with the only alternative being to reload the handlers or restart the IoT Box. Furthermore, as the action was executed correctly, this situation created a mismatch between the data stored in Odoo and the data logged to the BlackBox and sent to SPF. After this commit, the driver status is reset after being sent once. That way, when a new action is sent from the client to the IoT box, it's the status of the execution of this action and not the previous one that gets sent back to the client. opw-4313538 opw-4182434 opw-4293988