diff options
| author | Antoine Prieels <anp@odoo.com> | 2019-06-21 09:10:36 +0000 |
|---|---|---|
| committer | Antoine Prieels <anp@odoo.com> | 2019-06-21 12:07:01 +0000 |
| commit | c80b5333b603ca5561158fcdd91f244abe8469ad (patch) | |
| tree | 6e9899f76416e0324d75f57c7e1451eca13c0a1e /addons/web/static/src/js/fields/basic_fields.js | |
| parent | 92ae9687e877541b8118eab2f3a084c0b5fb18a1 (diff) | |
[FIX] hw_escpos: Avoid crashes on error
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.
closes odoo/odoo#34300
Signed-off-by: Quentin Lejeune (qle) <qle@odoo.com>
Diffstat (limited to 'addons/web/static/src/js/fields/basic_fields.js')
0 files changed, 0 insertions, 0 deletions
