From 96b2e8eeddea3a700aa721104813f1a4b88b2cbb Mon Sep 17 00:00:00 2001 From: GitHub Copilot Date: Thu, 27 Aug 2026 18:21:52 +0200 Subject: [PATCH] [FIX] website_sale_aplicoop: drop dead /eskaera/labels fetch, quiet a log The "Available Orders" page fetched /eskaera/labels with no request body against a type="json" route, which Odoo can't parse (400 "Invalid JSON data" on every load). The script also targeted #realtime-category-select, an element that only exists on the shop page, so it never did anything useful there anyway: the shop page already re-translates that option via _initializeTooltips() in website_sale.js. Delete the dead script instead of fixing a call that was never reachable. infinite_scroll.js also logged console.error for the expected case of running on a page with no product grid (this script loads site-wide); downgrade to console.log since it's not an error. Co-Authored-By: Claude Sonnet 5 --- .../static/src/js/infinite_scroll.js | 7 ++-- .../views/website_templates.xml | 36 ------------------- 2 files changed, 4 insertions(+), 39 deletions(-) diff --git a/website_sale_aplicoop/static/src/js/infinite_scroll.js b/website_sale_aplicoop/static/src/js/infinite_scroll.js index 61735fc..e328b97 100644 --- a/website_sale_aplicoop/static/src/js/infinite_scroll.js +++ b/website_sale_aplicoop/static/src/js/infinite_scroll.js @@ -132,9 +132,10 @@ console.log("[INFINITE_SCROLL] Script loaded!"); console.log("[INFINITE_SCROLL] eskaera-config element:", configEl); if (!configEl) { - console.error( - "[INFINITE_SCROLL] ❌ No eskaera-config found, lazy loading disabled" - ); + // Expected on every eskaera page that has no product grid + // (orders list, checkout, ...): this script is loaded + // site-wide, not just on the shop page. + console.log("[INFINITE_SCROLL] No eskaera-config found, lazy loading disabled"); return; } diff --git a/website_sale_aplicoop/views/website_templates.xml b/website_sale_aplicoop/views/website_templates.xml index 0b89f4a..61eafd8 100644 --- a/website_sale_aplicoop/views/website_templates.xml +++ b/website_sale_aplicoop/views/website_templates.xml @@ -69,42 +69,6 @@ -