[FIX] hw_drivers: Fix for Customer display

When a box was unable to reach the Odoo server the customer display
show a white screen.

With this fix we show the default POS Client display with IP address

closes odoo/odoo#38315

X-original-commit: 290c2be72cd8305fbf8093d782604e8b0f4a80c4
Signed-off-by: Quentin Lejeune (qle) <qle@odoo.com>
This commit is contained in:
lejeune quentin
2019-10-10 06:26:38 +00:00
committed by fw-bot
parent 7704a56df1
commit 59173b6569
+1 -1
View File
@@ -92,7 +92,7 @@ class DisplayDriver(Driver):
urls = json.loads(response.data.decode('utf8'))
return self.update_url(urls[self.device_identifier])
except json.decoder.JSONDecodeError:
return self.update_url(response.data.decode('utf8'))
return self.update_url(response.get(data.decode('utf8'), False))
except Exception:
pass
return self.update_url()