diff options
| author | lejeune quentin <qle@odoo.com> | 2020-02-26 14:20:42 +0000 |
|---|---|---|
| committer | lejeune quentin <qle@odoo.com> | 2020-02-26 17:32:05 +0000 |
| commit | 314410458b2ebe8a00ef7b8ef6127c034ad12474 (patch) | |
| tree | 3aac6271fa5514a70c8d58c5fa4b11d325c39797 | |
| parent | 5d62e4954f902e08bda38179bf98919dbd3a57e1 (diff) | |
[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) <qle@odoo.com>
| -rwxr-xr-x | addons/hw_drivers/controllers/driver.py | 1 | ||||
| -rwxr-xr-x | addons/point_of_sale/tools/posbox/configuration/posbox_update.sh | 2 |
2 files changed, 2 insertions, 1 deletions
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) & |
