diff --git a/extensions/odoo_theme/static/js/switchers.js b/extensions/odoo_theme/static/js/switchers.js index d464c69ed..7334cb844 100644 --- a/extensions/odoo_theme/static/js/switchers.js +++ b/extensions/odoo_theme/static/js/switchers.js @@ -12,7 +12,7 @@ * original target URL) that is available. */ const _prepareSwitchersFallbacks = () => { - document.querySelectorAll('a[class="o_switcher_item"]').forEach(element => { + document.querySelectorAll('a.o_switcher_item').forEach(element => { element.addEventListener('click', async event => { if (element.hasAttribute('href')) { const targetUrl = element.getAttribute('href');