[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) <aab@odoo.com> Signed-off-by: Simon Genin (ges@odoo) <ges@odoo.com>
This commit is contained in:
@@ -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;
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user