diff options
| author | lejeune quentin <qle@odoo.com> | 2020-02-24 13:19:09 +0000 |
|---|---|---|
| committer | lejeune quentin <qle@odoo.com> | 2020-02-24 16:03:12 +0000 |
| commit | fff277a4a7af950d6ec18d09d2533d95b40a2d70 (patch) | |
| tree | cbcc59dfad21c5f40600860388087a5b44795cca /addons/hw_drivers/controllers/driver.py | |
| parent | 1744878573efde37ecab16afe8b391403fee292a (diff) | |
[FIX] hw_drivers: Do not send request if the IoT is in access point
If IoT Box is in access point mode and a server is configured
the box try to reach the server.
But in access point mode all requests are redirected to the box
So now before return True in function 'get_odoo_server_url'
we verify if the service 'hostapd' is inactive
closes odoo/odoo#46141
X-original-commit: 365f0e384630bad16e0872d2307702fca5a4e295
Signed-off-by: Quentin Lejeune (qle) <qle@odoo.com>
Diffstat (limited to 'addons/hw_drivers/controllers/driver.py')
| -rwxr-xr-x | addons/hw_drivers/controllers/driver.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/hw_drivers/controllers/driver.py b/addons/hw_drivers/controllers/driver.py index ed3e8e6d091..e29f1c884b6 100755 --- a/addons/hw_drivers/controllers/driver.py +++ b/addons/hw_drivers/controllers/driver.py @@ -77,7 +77,7 @@ class StatusController(http.Controller): """ server = helpers.get_odoo_server_url() image = get_resource_path('hw_drivers', 'static/img', 'False.jpg') - if server == '': + if not server: credential = b64decode(token).decode('utf-8').split('|') url = credential[0] token = credential[1] |
