[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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user