[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>
This commit is contained in:
lejeune quentin
2020-07-06 14:59:11 +00:00
parent 5afc70faef
commit d6a23e49e2
@@ -43,7 +43,7 @@
url: '/hw_proxy/get_version',
timeout: 4000,
}).done(function(version) {
if (version === {{ flashToVersion }}) {
if (version == {{ flashToVersion }}) {
window.location = '/';
}
});