Access control in multi-company Odoo databases

Running several legal entities in one Odoo database is workable only if each user sees the right companies and the right records. This page explains the controls Odoo provides, how to configure them, and what to confirm before go-live.

On this page

Multi-company access control in Odoo: when one database is the right call

Groups that run several legal entities often ask whether they need one Odoo database per company or one shared database. Odoo supports multiple companies in one database, with some data shared and some kept separate, and access is governed by each user's allowed companies and by record rules. A single database usually makes sense when the entities share customers, products, a chart of operations or staff, and when management needs consolidated views. Separate databases give stronger isolation but add duplicate maintenance, separate upgrades and separate backups. Before choosing, confirm the plan requirement: the Odoo pricing page lists multi-company only on the Custom plan, and the lower plans are Odoo Online only, so a self-hosted design depends on that plan being in your quote.

Multi-company is also a licensing decision, not just a configuration option. Ask the vendor to confirm in writing which plan includes multi-company for your hosting model, how additional companies are counted, and whether the Custom plan covers every app your entities will use. Then map each setting and data type to one of three buckets: company-specific settings that each entity configures separately, shared general settings that apply to every company, and shared master data such as contacts and products. The Odoo multi-company documentation marks which settings are company-specific, so use it to check each item in your design rather than assuming.

This page covers the access model that keeps entities apart inside that database: allowed companies per user, company-specific records and settings, shared contacts and products, and record rules that stop data from crossing entity boundaries. Plan these before go-live, because a user who can switch into the wrong company, or a shared product that carries one entity's pricing, is a leak that is hard to spot later. Test each rule with users from each entity and confirm that intercompany transactions behave as your finance team expects.

Configuration options and when each fits

This table compares the main controls that keep companies apart in one Odoo database, from user company access to record rules. Read each row for what the control scopes, when it suits your structure, and the maintenance cost it adds. The main takeaway is that sharing master data is easy to switch on, but every shared record needs a clear owner and an explicit edit rule.

ControlWhat it controls and when it fitsTrade-off
Allowed companies per userSets which companies a user can switch into. Fits when staff work across a subset of entities, such as one finance team covering two legal entities.Users see only what is allowed, but every new entity needs an access review for each affected user.
Company selector in the top barLets a permitted user switch the active company for the session. Fits users who genuinely work for several companies and need to post in each.Convenient, but a user working in the wrong company can post records to the wrong entity, so training and naming discipline matter.
Company-specific fields and settingsSettings marked as company-specific, such as accounting and sales defaults, can differ per company. Fits entities with different currencies, tax rules or numbering.Each company needs its own configuration effort, and general settings still apply to all companies.
Shared contactsPartners can be used across companies, reducing duplicate master data. Fits customers or suppliers that trade with several entities.One edit affects every company using the contact, so decide who may change shared records and audit those changes.
Shared productsProduct records can be reused by several companies. Fits a common catalog across entities with the same sellable items.Company-specific prices, accounts or stock settings may still need separate handling, so confirm which fields stay per company.
Record rules scoped to companyRestricts which records a group can read or write by company. Fits cases where staff must not see another entity's sales, invoices or stock.Rules must be written and tested for each model, and they add query conditions that can slow large tables.
Global versus group record rulesGlobal rules apply to everyone, while group rules apply only to listed groups. Fits a company boundary that must hold for all users, including administrators who are not exempt.Rules combine in ways that are easy to misread, so test with real user accounts before go-live.

How the setup differs by entity structure

A holding company with subsidiaries that share a sales team usually wants one set of salespeople to quote and invoice for several legal entities. These users need several companies enabled in their allowed companies list, and the active company decides which entity issues the document. Shared contacts and products can stay common, while sales journals, price lists and pricing terms are often set per company. Record rules are needed where a salesperson should see only the orders of entities they serve, not every subsidiary's pipeline.

  • Multi-company users: Only the sales staff who work across entities get several allowed companies. Administrators should keep this list short.
  • Per-company settings: Sales journals, default taxes, sequences and pricelists are typically set for each subsidiary.
  • Shared master data: Customers and products can be shared, so one catalog serves every entity.
  • Record rules: Restrict sales orders and invoices to the entities a team covers, so cross-entity access is explicit.
  • Reporting access: Consolidated views for the holding company need a separate group, not general sales access.

Illustrative example: a salesperson for two subsidiaries sees both companies, but a regional team sees only its own entity's quotations. Check which records each group can open in every company, not only the default one.

How to configure company separation step by step

This sequence turns a shared Odoo database into a set of companies whose records, settings and staff access are kept apart, with a test at each stage that proves the separation holds before go-live.

  1. Confirm edition and plan support for multi-company

    Before any configuration, confirm with Odoo that your edition and plan include multi-company, and that your hosting type (Odoo Online, Odoo.sh or on-premise) supports it. Odoo's pricing page places multi-company in the Custom plan, so a Standard or One App Free subscription will not allow it. Ask the vendor to confirm the current plan terms in writing. Done means you hold a written confirmation that the plan you will run includes multi-company.

  2. Create the companies and their hierarchy

    An administrator creates each legal entity as a company record in Settings, sets its name, currency, address and parent company where a group structure applies, and checks that each company appears in the company switcher. Keep the list short and agreed with finance, because every company added later adds configuration and testing work. Done means every entity exists once, with the correct legal details, and no duplicate company records remain.

  3. Set company-specific settings and accounting

    Work through the settings that Odoo marks as company-specific, such as chart of accounts, journals, fiscal positions, taxes, sequences, warehouses and default currencies. Most general settings apply to all companies, so review each one and confirm whether it should differ by entity. Make the company-specific choices while the companies are being switched, and record which settings were deliberately left shared. Done means a finance reviewer has signed off the accounting setup for each company.

  4. Decide which master data is shared and which is separate

    Map each master data type (contacts, products, pricelists, employees, suppliers) to one of two positions: shared across companies, or restricted to one company. Odoo can share some data and separate other data within one database, so the choice drives visibility for every user later on. Write the decision down per model, with an owner for each. Done means a reviewed table lists every shared and separate model, and the people who approve exceptions are named.

  5. Assign allowed companies to each user

    For each user, set the companies they may access and choose one default company. Limit cross-entity access to people with a documented business need, such as a group finance lead, and give everyone else a single company. Keep administrators separate from daily users so that the people who can change company access are few. Done means an access register lists every user with their allowed companies and an approver.

  6. Define record rules for sensitive models

    Where shared or company-linked models hold sensitive records, such as sales orders, invoices, payroll or stock moves, add record rules that restrict them to the companies the user may see. Test how global and group rules combine before relying on them, and avoid rules that rely on a single user's session state. Ask your implementation partner or Odoo documentation which models carry the company field and confirm that each sensitive one is covered. Done means each sensitive model has a documented rule, and a reviewer has checked it against the access register.

  7. Test each user's visible records from every entity

    Log in as a test user from each entity and open the sales, purchase, accounting, inventory and contact screens. Confirm that records from other companies do not appear in lists, search, reports, or the company switcher, and that the default company is the one expected. Repeat the test for a user with access to two companies to confirm that they see only the two they were given. Use a staging copy rather than production data where possible. Done means a signed test log shows every user profile passing, with any leak logged as a defect and retested.

  8. Retest after every change and upgrade

    Repeat the cross-company tests whenever a company, user, module or record rule changes, and after each Odoo upgrade or custom module install, because new models may add company fields that the existing rules do not cover. Keep the test log with the access register so auditors and internal reviewers can see what was checked and when. Done means the test script is stored with the access register and is run as part of every change request.

How a request is limited to allowed companies

The flow starts at sign-in, where the user's allowed companies are set on the user record. The browser session then carries one active company, and every ORM query runs through record rules and company fields before results return. The two places to check are the record rules themselves and any sudo() call, because elevated code runs outside the rule check and can return records from companies the user should not see.

Where company checks apply to a request, and where they can be bypassed.

Where data leaks between companies in practice

In a multi-company Odoo database, company separation depends on several layers working together: user assignments, record fields, shared master data and custom code. Most leaks come from one of these layers being assumed rather than checked, so each card names the control to verify.

Shared contacts and products

Contacts, products and some settings are shared across companies by design, so one entity's pricing, notes or partner details can appear to another entity if they are edited on a shared record. Check which fields are company-specific in your version and which master data is shared before you load it. Confirm who may edit shared records and whether a change in one company affects the others.

Multi-company docs

Users granted too many companies

The allowed companies list on a user decides which company records that user can open and switch into. A user granted every company for convenience can read and post in entities they do not work for. Review allowed companies per user during access reviews, and keep the default company to the one the person works in most often. Test each role with a user who has only the intended companies enabled.

Company-less records from custom modules

A custom model or automated action that creates records without setting a company field can produce data that belongs to no entity, and record rules keyed on company may then hide it or show it to everyone depending on how the rule is written. Review every model added by custom code for a company field and a matching record rule. Test creation and reading with users from each company.

Reports and exports ignoring the active company

Pivot views, reports, scheduled exports and dashboards may query across all records unless they filter on the active company. A manager switched into one company can still see totals or lines that include another entity if a report or export uses a domain without a company condition. Check standard and custom reports with more than one company enabled, and compare totals against per-company runs.

Sudo and raw SQL in custom code

Calls to sudo() run as a superuser and skip record rules, and raw SQL bypasses the ORM entirely, so both can return or change records from every company. Search custom and third-party modules for these patterns during review, and require a written reason for each one. Where a call must cross companies, limit it to the smallest method and check the company explicitly in code.

How to test that record rules hold across companies

Test record rules with one user per company before any business user logs in. Create a test user for each legal entity, give each user access to only its own company, and log in as each one in turn. Build a short checklist of models that carry company data: sales orders, customer invoices, vendor bills, stock moves, payments and journals. For each model, record a known set of records in every company, then confirm that each test user sees only its own set in list views, search results, pivot reports and exports. Repeat the check for the shared records you expect to be visible across companies, such as contacts and products, so you know exactly what crosses the boundary and why. Confirm the exact list of models and fields with your own administrator and functional consultant, since the set that matters depends on which apps you have installed.

Run negative tests that try to reach another company's record directly. A list filter is not a security control, so test the paths a curious user would take. Copy the URL of a record from company A and open it while logged in as a company B user. Search for a known company A document reference from company B. Try the same record through related fields, such as an invoice reached from a payment, and through reports or exports. Each attempt should fail with an access error or return nothing. Keep a written log of each attempt, the user, the model, the record identifier and the result, so the evidence is repeatable. Treat any successful read or write as a defect, and check that the rule is not bypassed by an administrator group or a sudo call in custom code.

Retest after every upgrade and every new module, including custom and third-party code. Record rules can change when Odoo changes an application's access model, so run the full checklist against the upgraded test database before production, as the upgrade documentation recommends for any test copy. Apply the same checks to Apps Store modules, OCA modules and in-house modules, because a module that reads records with elevated rights or adds its own models can expose data that the standard rules hide. Ask the module author or your partner which rules the module adds and whether it uses sudo or raw SQL. Keep the test users and the evidence log under change control so each retest starts from the same baseline.

Multi-company access control questions buyers ask

Does multi-company Odoo require the Custom plan and Odoo.sh or on-premise hosting?

Yes, according to Odoo's pricing page, multi-company is included only in the Custom plan, and the Custom plan is the only plan that can be hosted on Odoo.sh or on-premise. The One App Free and Standard plans are Odoo Online only, so a business that needs several companies in one database on its own infrastructure should confirm the current plan terms with Odoo before choosing a hosting model. Ask the vendor to confirm which features are included in the plan you quote, because Odoo's plan contents can change between releases. Also confirm whether the on-premise option requires an Enterprise subscription code, since the Enterprise edition is needed for the paid features described on the pricing page.

What drives the cost of setting up multi-company access control?

The main drivers are the number of legal entities, how much data is shared between them, how many custom modules or reports must respect company boundaries, and how much cross-company reporting leadership expects. Each additional entity adds chart of accounts mapping, company-specific settings, user assignments and test cases. Shared contacts, products and pricing lists need a deliberate decision about which company owns each record, and each shared object adds review time. Custom modules that query data without company filters need code review and rework. Ask any partner to split the quote into discovery, configuration, custom record rule work, testing and training, so you can see which items recur after go-live, such as support or changes when a new entity is added.

How long does multi-company configuration take?

It depends on scope, so no fixed duration applies to every project. The timeline is driven by how many companies exist, how different their charts of accounts and processes are, which records are shared, and whether custom record rules or reports are needed. A project with two entities that use the same chart of accounts and the standard apps will usually take less time than one that consolidates several entities with different tax rules and custom reporting. Ask for a timeline in the written scope, with separate milestones for entity setup, access design, testing with real user roles and go-live preparation, and confirm which items depend on decisions from your finance and legal teams.

What must our team supply before access control design starts?

Your team should provide a complete entity list with legal names, registration details and fiscal settings, plus the chart of accounts for each company and a map of which accounting, sales and inventory processes differ between them. You also need a user role matrix that shows who works in which company, which users need access to several companies, and who approves cross-company transactions. Document approval rules for intercompany invoices, pricing and stock transfers, and name a business owner for each shared master data object such as contacts and products. Without these inputs, record rules and company assignments will be guesses that must be reworked during testing.

Can our internal administrators set up multi-company access without a partner?

Yes, a capable internal administrator can configure companies, allowed companies per user and company-specific settings, because Odoo documents these features in its multi-company guide. The harder work is security design: deciding which records are company-specific, writing or reviewing record rules, and testing that a user in one company cannot see another company's data through reports, searches, API calls or custom modules. Internal teams often underestimate that testing. If your administrators lack experience with Odoo security or have no test environment, consider a fixed-scope review of the design and tests. Confirm the split of responsibilities in writing before work begins.

What happens to multi-company access rules during an Odoo upgrade?

Upgrades can change how standard models, record rules and company-related settings behave, so access rules should be treated as part of the upgrade test plan. Odoo's upgrade documentation describes moving a database to a newer supported version through an upgraded test database that should be tested before production. Custom record rules, custom modules and reports that filter by company must be checked on that test copy, with test users from each company and from the shared-services roles. Odoo on-premise upgrades require an Enterprise subscription, and the Community edition does not have access to the upgrade service. Ask your partner to include access regression tests in the upgrade scope and to confirm the support window for your version.

Do shared contacts and products create a data leak risk between companies?

They can, if sharing is not designed deliberately. Odoo documents that some data can be shared across companies while other data stays separated, and that most general settings apply to all companies while company-specific settings are marked as such. Shared records are visible to users who can see the shared scope, so a contact that belongs to several entities can expose details such as pricing, notes or bank information unless fields and rules are reviewed. Decide which fields are shared, which are company-owned, and who may edit shared master data. Test this with a user from each company, and include reports, exports and API responses in the test cases.

Security and operational considerations

Multi-company isolation in Odoo depends on more than user settings. Administrator accounts, custom code, upgrade timing, identity mapping and audit trails all affect whether companies stay apart over the life of the database. Check each of these before you add a second company to a shared database.

Superusers and administrators see everything

Administrator accounts with full rights can switch between every company in the database and view records outside their own entity. Keep the number of administrators small, and give day-to-day users only the companies they work in. Review who holds administrator rights each quarter, and confirm that no one uses a shared admin login for routine company work. Multi-company rules do not restrict an account that already has full rights.

Sudo calls in custom code

Sudo runs code with superuser rights and skips the access rules that normally filter records by company. A custom module or Apps Store module that calls sudo inside a business method can expose another company's data without any visible error. Before installing custom code, search for sudo calls and confirm each one has a documented reason. Ask the developer who maintains that code after go-live.

Mandatory upgrades on Online and Odoo.sh

Odoo documents that major version upgrades are mandatory every two years on Odoo Online and Odoo.sh. Company-specific rules, record rules and custom modules can change behavior between versions, so isolation tests should be repeated after each upgrade. Plan the upgrade against the support windows: Odoo 17.0 standard support ended in September 2026, while Odoo 18.0 standard support runs until September 2027.

Mandatory major upgrades
Every two years
Odoo upgrade docs

Security patches during standard support only

Odoo states that security patches are provided only during standard support, and extended support is limited to Odoo.sh for select versions and on-premise. Once a version leaves standard support, a flaw in record rules or company filtering may stay open. Confirm the version your database runs, its support end date, and whether your hosting type qualifies for extended support before you commit to the design.

Odoo 18.0 standard support ends
September 2027
Support policy

LDAP and SSO mapping to companies

Odoo documents sign-in through LDAP, with optional user creation on first login from a template. Whatever attributes or groups your directory sends must map to the correct companies and access groups. A mapping error can place a user in the wrong entity on first login. Test each identity source with one account per company, and confirm that a user removed from the directory loses access in Odoo as well.

LDAP docs

Audit trails for cross-company actions

Actions that touch several companies, such as shared contact edits, intercompany invoices or user switches between entities, need a record of who did them and when. Confirm which Odoo chatter, tracking and logging settings apply to your models, and whether they cover the fields that matter for company separation. Ask the implementation partner to show where this evidence lives and how long your team keeps it.

Deciding between one database and separate databases

Choose one database when the entities need to share people, contacts, products or stock, and separate databases only when isolation, upgrade timing or administration must be independent. Odoo's multi-company model lets several companies share one database, with some data shared and some separated. Most general settings apply to every company, while company-specific settings are marked as such in the documentation, so a shared database means one shared configuration to govern. Before you decide, write down which records must be visible across entities (for example, a common supplier list or a warehouse used by two companies) and which must never cross the boundary, because that list drives the access model in every other section.

Separate databases give the strongest boundary. Each entity gets its own data store, its own administrators and its own upgrade schedule, and a fault or misconfiguration in one cannot expose another's records. The trade-off is operational: each database needs its own backups, monitoring, module set, customizations, patching and upgrade test, and shared people or contacts must be kept in sync by integration rather than by the ORM. Upgrades deserve particular attention, because Odoo's standard support windows and the mandatory major upgrade cycle on Odoo Online and Odoo.sh apply to every database you run, so multiplying databases multiplies that work. Ask your partner to price this per database, not once for the whole group.

Make the choice from a test, not from the org chart. Build a small illustrative setup with two companies, one shared contact and one restricted sales team, configure the allowed companies per user and the record rules, then have a user from each entity try to see, edit and report on the other's data. If a rule is only enforced by convention, or if a custom module or report bypasses it, the single-database model needs more controls than you planned. Confirm with your Odoo edition and hosting type which multi-company features are available to you before you commit, because those limits can change the answer.

How DeployOpen scopes and delivers company separation

DeployOpen treats access control in a multi-company Odoo database as a written scope before any build starts. We map which companies each user needs, which settings and records stay separate, and which contacts and products are shared, then test that the separation holds before handover.

How we scope

  • Map every legal entity, branch and user group that will share the one database and which companies each person needs.
  • List company-specific settings, journals, warehouses and sequences, and confirm which general settings apply to all companies.
  • Agree in writing which contacts, products and other shared data stay common and which must be split by company.

How we build

  • Configure allowed companies per user and company-specific records so default selections cannot expose another entity's data.
  • Write and review record rules for each sensitive model, and check how they combine with group access rights.
  • Test each rule with users from every company, including the cases where one user must see two entities.

How we hand over

  • Deliver a written access model that names each group, the companies it covers and the reason for each shared record type.
  • Document test cases, their results and the steps to repeat them after a configuration or module change.
  • Walk administrators through adding a company, adding a user and reviewing record rules without breaking existing separation.

How we support

  • Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.
  • Ongoing support, upgrades and continuous testing of company separation are available as a retainer.
  • Ask any partner to confirm how retesting is priced and what changes trigger a new review of the access model.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.