OdooWiki OCA HUB

Web Company Color

web_company_color folder_open OCA/web open_in_new
web License: AGPL-3

This module change navbar colors based in the company logo colors.

auto_awesome What this module does

AI-generated from the code · Odoo 19.0

Lets administrators change the colors of the Odoo web interface (top navigation bar, buttons, links, submenus) per company, either by picking colors manually or by generating them automatically from the company logo.

This module adds a "Company Styles" tab to the company settings form, visible only to administrators. There, ten color pickers control the look of the web client: navigation bar background, its hover color and bottom border, navigation bar text, button background, button hover background and button text, link text and link hover text, and submenu text.

Two buttons help set things up: - "Compute colors from logo" reads the company logo image and derives a matching navigation bar color, a slightly darker hover/border color, and black or white text depending on how light the logo is. - "Reset colors" clears all custom colors and reloads the page so Odoo's default look comes back.

Colors are stored per company, so each company can have its own theme. Whenever the colors are saved, the module regenerates a small style sheet attached to that company, and the web client loads the style sheet of the company currently active for the user. A note on the screen reminds users to refresh the page to see the changes.

It touches the company settings (res.company) and the web asset system (ir.qweb). When the module is installed, style sheets are generated for all existing companies; when it is uninstalled, those generated files are removed.

Depends on

webbase_sparse_field

Required by other modules

Models and fields (2)
  • ir.qweb · extends an existing model
  • res.company · extends an existing modelcompany_colors, color_button_bg (Button Background Color), color_link_text (Link Text Color), color_navbar_bg (Navbar Background Color), color_button_text (Button Text Color), color_navbar_text (Navbar Text Color), color_submenu_text (Submenu Text Color), scss_modif_timestamp (SCSS Modif. Timestamp), color_button_bg_hover (Button Background Color Hover), color_link_text_hover (Link Text Color Hover), color_navbar_bg_hover (Navbar Background Color Hover), color_navbar_border_bottom (Navbar Bottom Border 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: 8 confirmed, 1 with no information of 9 versions.

terminal Installation and usage

OCA documentation · Odoo 19.0

Go to company record and set a logo. Can see/modify applied colors on the "Navbar" section.

For optimal results use images with alpha channel.

No verified information in OCA: Installation, Configuration.

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.