From 314410458b2ebe8a00ef7b8ef6127c034ad12474 Mon Sep 17 00:00:00 2001 From: lejeune quentin Date: Wed, 26 Feb 2020 14:20:42 +0000 Subject: [PATCH] [FIX] hw_drivers: In IoT update route list after loading driver For update correctly the route list of IoT after loading driver we need set 'http.addons_manifest' to a empty json Linked to 97c09e1c77284836c7c46b4e70d4f12eb48ce91b Reboot not needed after a update Linked to b77486753b7ae220a531ee09c529fb5eb944b0e2 Linked to 181a62cb57e143611ca1fbf0779cfd041d2a3cf8 closes odoo/odoo#46386 X-original-commit: 87b127efed97c1f6fad18d6ee6b5924a9b2c70f2 Signed-off-by: Quentin Lejeune (qle) --- addons/hw_drivers/controllers/driver.py | 1 + .../point_of_sale/tools/posbox/configuration/posbox_update.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/addons/hw_drivers/controllers/driver.py b/addons/hw_drivers/controllers/driver.py index e29f1c884b6..bde5f5b1756 100755 --- a/addons/hw_drivers/controllers/driver.py +++ b/addons/hw_drivers/controllers/driver.py @@ -272,6 +272,7 @@ class Manager(Thread): if spec: module = util.module_from_spec(spec) spec.loader.exec_module(module) + http.addons_manifest = {} http.root = http.Root() def send_alldevices(self): diff --git a/addons/point_of_sale/tools/posbox/configuration/posbox_update.sh b/addons/point_of_sale/tools/posbox/configuration/posbox_update.sh index e8b3db069b8..93f1a003f18 100755 --- a/addons/point_of_sale/tools/posbox/configuration/posbox_update.sh +++ b/addons/point_of_sale/tools/posbox/configuration/posbox_update.sh @@ -25,4 +25,4 @@ done sudo mount -o remount,ro / sudo mount -o remount,rw /root_bypass_ramdisks/etc/cups -(sleep 5 && sudo reboot) & +(sleep 5 && sudo service odoo restart) &