Daily updates from Odoo
Wednesday, June 26, 2019
1 change · master
Resolved issues and error corrections
This fixes error handling for receipt printer communication on the IoT Box. If a printer connection fails, Odoo now avoids a secondary crash and keeps the local instance more stable for point-of-sale operations.
Original PR description
Two different problems on the box and resulted in the crash of the Odoo instance running on the IoT Box: When `usblp` had troubles communicating with a printer, a NoDeviceError was raised. The `printer` variable was still set from the last time the loop was processed, so we tried to close it, resulting in an error. The code handling generic execptions was broken. -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr