[FIX] web: url to ping the server is incorrect

If applied, this commit will fix the following bug by fixing
the url used to ping the server

Steps to reproduce:

1- open apps with debug mode
2- click on updates
3- the server is read as if it is offline

Bug:

in ecfe85db84 all links are changed
static/src/(img|fonts) => static/(img|fonts) however in this specific
 case the server is remote
(https://apps.odoo.com) and it still needs /src/

Fix:
add /src to the url

OPW-2791531

closes odoo/odoo#91112

X-original-commit: bf629cf3063119a5c819f74329a51a0e1a7c172f
Signed-off-by: Géry Debongnie <ged@odoo.com>
This commit is contained in:
momegahed
2022-05-19 12:28:12 +02:00
parent 958fc1ed24
commit 85ab969f6a
+1 -1
View File
@@ -36,7 +36,7 @@ var Apps = AbstractAction.extend({
};
});
var ts = new Date().getTime();
i.src = _.str.sprintf('%s/web/static/img/sep-a.gif?%s', client.origin, ts);
i.src = _.str.sprintf('%s/web/static/src/img/sep-a.gif?%s', client.origin, ts);
return def;
};
if (apps_client) {