summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntoine Prieels <anp@odoo.com>2019-09-11 08:38:36 +0000
committerAntoine Prieels <anp@odoo.com>2019-09-11 08:38:36 +0000
commit0bf6fb05196ac92bb8a7626f1c398ee8683b2ddb (patch)
tree685da912a5da8516f214e0b4d1d62adcf0bb7a71
parent570566b674b19d7c7817fb278a7ef242597225a3 (diff)
[FIX] hw_drivers: Display slowed IoT Box down
In DisplayDriver, we setup a loop to refresh the display every minute if the url shown is not the customer display. If the customer display was used, the loop didn't wait a minute and looped indefinitely, without sleeping. This slowed down the whole box and explains why receipts took a long time to print with older versions of Odoo and why the framerate of the curomer display was so low. closes odoo/odoo#36670 Signed-off-by: Quentin Lejeune (qle) <qle@odoo.com>
-rw-r--r--addons/hw_drivers/drivers/DisplayDriver.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/hw_drivers/drivers/DisplayDriver.py b/addons/hw_drivers/drivers/DisplayDriver.py
index 35547fbcbe1..4fccf0bd108 100644
--- a/addons/hw_drivers/drivers/DisplayDriver.py
+++ b/addons/hw_drivers/drivers/DisplayDriver.py
@@ -68,9 +68,9 @@ class DisplayDriver(Driver):
def run(self):
while True:
+ time.sleep(60)
if self.url != 'http://localhost:8069/point_of_sale/display/':
# Refresh the page every minute
- time.sleep(60)
self.call_xdotools('F5')
def update_url(self, url=None):