From c0e354eeecb1c8c912ac5661eaefbac044ee339c Mon Sep 17 00:00:00 2001 From: "Simon Genin (ges)" Date: Mon, 4 Oct 2021 12:49:18 +0000 Subject: [PATCH] [FIX] web: company_menu always shown by default (in community) Before: the company menu would disapear when the screen was smaller than some threshold. It is expected in enterprise, but not in community as it doesn't have the burger menu. After: The menu is set to always be displayed. To remove it becomes an enterprise reponsability. closes odoo/odoo#78034 X-original-commit: 039e24eabf258da6bfad45a839c51116f6d86e0c Related: odoo/enterprise#21535 Signed-off-by: Aaron Bohy (aab) Signed-off-by: Simon Genin (ges@odoo) --- .../src/webclient/switch_company_menu/switch_company_menu.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/web/static/src/webclient/switch_company_menu/switch_company_menu.js b/addons/web/static/src/webclient/switch_company_menu/switch_company_menu.js index 690a29b6dcf..fba4f132a88 100644 --- a/addons/web/static/src/webclient/switch_company_menu/switch_company_menu.js +++ b/addons/web/static/src/webclient/switch_company_menu/switch_company_menu.js @@ -40,11 +40,11 @@ export class SwitchCompanyMenu extends Component { SwitchCompanyMenu.template = "web.SwitchCompanyMenu"; SwitchCompanyMenu.toggleDelay = 1000; -const systrayItem = { +export const systrayItem = { Component: SwitchCompanyMenu, isDisplayed(env) { const { availableCompanies } = env.services.company; - return Object.keys(availableCompanies).length > 1 && !env.isSmall; + return Object.keys(availableCompanies).length > 1; }, };