OdooWiki OCA HUB

Intercompany shared contact

intercompany_shared_contact folder_open OCA/multi-company open_in_new
Partner License: AGPL-3

This module automatically shares all the contacts originating from companies (res.company object).

For example, suppose we have a multi-company environment with two companies (res.company) A and B in Odoo. We have users uA, uB (belonging to their respective companies).

Normally, uA cannot access the contact B. With this module, uA can see B (and inversely uB can see A). uA still can't see all the other (supplier/reseller) contacts of company B.

auto_awesome What this module does

AI-generated from the code · Odoo 14.0

Shares company contacts across companies in a multi-company setup, so users of one company can see the company partner of another company, while still restricting edits to the owning company.

In a multi-company Odoo database, contacts are normally only visible to users of the company that owns them. This module makes the contact record that represents each company (its company partner) visible to users of all companies, and also shares the child addresses of that company contact.

  • A new stored field on contacts keeps track of the "real" owning company even when the contact is shared. If this field is empty, the contact is not shared.
  • When a contact is a company partner or a child of one, it is automatically shared by clearing its company, so users from other companies can read it.
  • Users of other companies can read the shared contact but cannot change most of its fields. Only fields that depend on the company (and bank accounts) can be modified by them; any other change raises an access error.
  • A security rule allows creating and deleting contacts only when the contact belongs to the user's company or is not shared, and blocks writing through the rule (write protection is handled in code).
  • When a user is created or their company changes, their contact is automatically linked under the company partner, so the user appears as a contact of that company.
  • A database constraint ensures each company is linked to a unique contact.

This affects the res.partner, res.company and res.users models and adds a security rule on contacts.

Depends on

contacts

Required by other modules

Models and fields (3)
  • res.users · extends an existing model
  • res.company · extends an existing model
  • res.partner · extends an existing modelres_company_id, origin_company_id

Text generated by AI (DeepSeek) from reading the Odoo 14.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.

Sources · Odoo 14.0

Confirmed on 2026-11-03 in branch 14.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.