From 85ab969f6a938f475c8c6d49cdc3dff09a1cfb27 Mon Sep 17 00:00:00 2001 From: momegahed Date: Thu, 28 Apr 2022 10:02:51 +0000 Subject: [PATCH] [FIX] web: url to ping the server is incorrect MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 ecfe85db84fb5649aaeb48ba3b221386e61a57bc 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 --- addons/web/static/src/legacy/js/apps.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/web/static/src/legacy/js/apps.js b/addons/web/static/src/legacy/js/apps.js index 370caef6363..926e6f8c121 100644 --- a/addons/web/static/src/legacy/js/apps.js +++ b/addons/web/static/src/legacy/js/apps.js @@ -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) {