Repository
OCA/web · module folder · Try on Runboat
Module version
1.0.0
Category
Web
Folder size
0.09 MB
License
LGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/web
Last tracking update
2026-08-03 18:04:22
Authors
Odoo Community Association (OCA), Acsone
Maintainers
Odoo Community Association (OCA), Acsone
Committers
Pierre Verkest, OCA-git-bot, oca-ci
Odoo dependencies
odoo/odoo:
- web
Python dependencies
None
System dependencies
None
Required by
None
Description
This module highlights the company switcher in the top bar of the web client when multiple companies are selected.

In a multi-company Odoo environment, users can easily lose track of their active company context. When more than one company is selected, they might unintentionally create or view records in the wrong context.

By applying a visual highlight to the company switcher when multiple companies are selected, this module provides an immediate visual cue, helping users remain aware of their active companies and reducing the risk of data entry errors.

* with multiple companies selected

  ![company switcher with multiple companies selected](../static/img/web_company_context_highlight_multiple_companies_selected.png)

* with one company selected

  ![company switcher with one company selected](../static/img/web_company_context_highlight_one_company_selected.png)

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
res_config_settings_view_form res.config.settings.view.form.inherit.web_company_context_highlight res.config.settings form Inherits base_setup.res_config_settings_view_form
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (2)

New fields (0)

No new fields.

Public methods (1)
  • session_info(self)

New fields (2)
  • web_company_context_highlight_color Char
    config_parameter='web_company_context_highlight.color' default='#ffc107' help='Background color used to highlight the company switcher when in multi-company context.' string='Company Highlight Color'
  • web_company_context_highlight_text_color Char
    config_parameter='web_company_context_highlight.text_color' default='#212529' help='Text color used to highlight the company switcher when in multi-company context.' string='Company Highlight Text Color'
Public methods (0)

No public methods.