From d6a23e49e2cf73c0fc7db9e348fc51e0d81ca14c Mon Sep 17 00:00:00 2001 From: lejeune quentin Date: Mon, 6 Jul 2020 10:10:04 +0000 Subject: [PATCH] [FIX] hw_posbox_homepage: Remove format condition for refresh after uograde IoT Box When we upgrade the IoT we wait that the version of box match with the last version of IoT Box before to refresh. We make a request to '/hw_proxy/get_version' to get the actual version. In Jinja this response give a float. We compare this value with a string using '===' who want that the format match. So we doesn't compare the format of values but only the value by putting only '=='. closes odoo/odoo#54149 X-original-commit: 06f9baae968674547cb2592b1c22147bfb2e8ba9 Signed-off-by: Quentin Lejeune (qle) --- addons/hw_posbox_homepage/views/upgrade_page.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/hw_posbox_homepage/views/upgrade_page.html b/addons/hw_posbox_homepage/views/upgrade_page.html index 9055ca86be4..0c87fc62d78 100644 --- a/addons/hw_posbox_homepage/views/upgrade_page.html +++ b/addons/hw_posbox_homepage/views/upgrade_page.html @@ -43,7 +43,7 @@ url: '/hw_proxy/get_version', timeout: 4000, }).done(function(version) { - if (version === {{ flashToVersion }}) { + if (version == {{ flashToVersion }}) { window.location = '/'; } });