summaryrefslogtreecommitdiff
path: root/addons/hw_posbox_homepage
diff options
context:
space:
mode:
authorlejeune quentin <qle@odoo.com>2020-07-06 10:10:04 +0000
committerlejeune quentin <qle@odoo.com>2020-07-06 14:59:11 +0000
commitd6a23e49e2cf73c0fc7db9e348fc51e0d81ca14c (patch)
tree1157c8213dfc1f570907f12bdd568d4e62450efc /addons/hw_posbox_homepage
parent5afc70faef1de3510f38d3cb4253ad4e05a0b676 (diff)
[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) <qle@odoo.com>
Diffstat (limited to 'addons/hw_posbox_homepage')
-rw-r--r--addons/hw_posbox_homepage/views/upgrade_page.html2
1 files changed, 1 insertions, 1 deletions
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 = '/';
}
});