OdooWiki OCA HUB

Company Code

res_company_code folder_open OCA/multi-company open_in_new
Tools License: AGPL-3

In a big multi-company context, users often use a code to indentify the differents companies.

  • This module adds code fields on company model.

This field is optional, but should be unique, if defined.

  • This code will prefix the name, in the Odoo Switch Company Menu widget:
  • this module also change the order of the companies, ordering by code, then by company name. (instead of by sequence, then by name). It so hides the now useless field sequence.

auto_awesome What this module does

AI-generated from the code · Odoo 18.0

Adds an optional, unique 'code' to each company. The code is shown before the company name everywhere (including the company switcher) and companies are sorted by code then name.

This module lets you give each company a short code, for example 'C1' or 'C2', which is useful when many companies exist in the same database.

  • On the company form, a new Code field appears just under the company name.
  • The code must be unique: Odoo refuses to save two companies with the same code.
  • The code is optional; if left empty, the company simply keeps its normal name.
  • Wherever a company is displayed, the code is shown in front of the name, in the form 'CODE - Company Name'. This applies to the company switcher menu, the company list and the company kanban cards.
  • Companies are now ordered by code and then by name, instead of by the old sequence number and name. The sequence column is hidden in the company list, and the name column is replaced by the combined code and name.
  • Searching for companies also matches the code, in addition to the name, tax ID and company registry number.

The module only affects the company model (res.company) and the session information sent to the web client. It requires the multi-company feature to be enabled to show the company switcher.

Required by other modules

Models and fields (2)
  • ir.http · extends an existing model
  • res.company · extends an existing modelcode

Text generated by AI (DeepSeek) from reading the Odoo 18.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: 6 confirmed, 3 with no information of 9 versions.

Sources · Odoo 16.0

Confirmed on 2026-11-03 in branch 16.0 of OCA/multi-company.

terminal Installation and usage

No verified information

Installation instructions, the distribution package, dependencies and configuration steps are not shown because they have not yet been verified in the module documentation for any version.

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.