Skip to content

Commit

Permalink
[FIX] hw_posbox_homepage: Fix odoo service restart in iot
Browse files Browse the repository at this point in the history
after using the token to link a database to an iot box, the odoo service
 is not restarted and therefore no box is visible in the database.
Now we apply the odoo_restart() function regardless of the platform used

closes odoo#134928

X-original-commit: 70a66cf
Signed-off-by: Quentin Lejeune (qle) <qle@odoo.com>
  • Loading branch information
qle-odoo committed Sep 11, 2023
1 parent 19fe730 commit 15316b0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions addons/hw_posbox_homepage/controllers/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,8 +217,7 @@ def connect_to_server(self, token, iotname):
token = helpers.get_token()
if iotname and platform.system() == 'Linux':
subprocess.check_call([get_resource_path('point_of_sale', 'tools/posbox/configuration/rename_iot.sh'), iotname])
else:
helpers.odoo_restart(3)
helpers.odoo_restart(5)
return 'http://' + helpers.get_ip() + ':8069'

@http.route('/steps', type='http', auth='none', cors='*', csrf=False)
Expand Down

0 comments on commit 15316b0

Please sign in to comment.