OdooWiki OCA HUB

Web Company Context Highlight

web_company_context_highlight folder_open OCA/web open_in_new
Web License: LGPL-3

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
  • with one company selected

auto_awesome What this module does

AI-generated from the code · Odoo 19.0

Highlights the company switcher in the top bar when more than one company is active, using configurable background and text colors, so users notice they are working in a multi-company context.

When a user has more than one company selected in the top bar, this module visually highlights the company switcher so it is harder to forget that records may be created or viewed in several companies at once.

  • The highlight only appears when more than one company is active; with a single company the switcher looks normal.
  • A small building icon with the tooltip "Multi-company context active" is shown next to the company name in the top bar.
  • The background and text colors of the highlight can be chosen by administrators in Settings, under the Companies section, in a setting called "Company Switcher Highlight".
  • Default colors are a yellow background (#ffc107) and dark text (#212529), and they are stored as system parameters so they apply to all users.

The module touches the web client top bar and the settings screen. It extends res.config.settings with two color fields and adds the color values to the session information so the browser can apply them. It does not change any business documents, and it does not block or restrict any action; it is purely a visual warning.

Depends on

webbase_setup
Models and fields (2)
  • ir.http · extends an existing model
  • res.config.settings · extends an existing modelweb_company_context_highlight_color (Company Highlight Color), web_company_context_highlight_text_color (Company Highlight Text Color)

Text generated by AI (DeepSeek) from reading the Odoo 19.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub

Availability by version

Reviewed: 2026-11-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

Confirmation status: 1 confirmed, 8 with no information of 9 versions.

terminal Installation and usage

OCA documentation · Odoo 19.0

To configure the highlight colors:

  • Go to Settings > General Settings.
  • Scroll to the Companies section.
  • Under Company Switcher Highlight, set the desired Background Color and Text Color using the color pickers.
  • Click Save.

Alternatively, you can configure these values by modifying the following System Parameters (in debug mode, under Settings > Technical > System Parameters):

  • web_company_context_highlight.color: The background color code (default: #ffc107).
  • web_company_context_highlight.text_color: The text color code (default: #212529).

No verified information in OCA: Installation, Usage.

info

Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.