Repository
OCA/multi-company · module folder · Try on Runboat
Module version
1.0.1
Category
base
Folder size
0.07 MB
License
LGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/multi-company
Last tracking update
2026-08-07 09:06:27
Authors
ACSONE SA/NV, Odoo Community Association (OCA), Tecnativa, LasLabs
Maintainers
ACSONE SA/NV, Odoo Community Association (OCA), Tecnativa, LasLabs
Committers
Emilio Pascual, David Vidal, OCA-git-bot, oca-ci
Odoo dependencies
None
Python dependencies
None
System dependencies
None
Required by
None
Description
This module will provide a way to change the way Odoo manages a
'multi-company' implementation.

## Abstract

Odoo traditional implementation of multi-company:

- Some models contain a field named Company (company_id) that allows to
  set one company or None in order to:
  - Limit access to that company if set.
  - not limiting access to any company if not set.

This module changes that in order to introduce a finer company access.
e.g.: If you want to give record access to company A and B but not for
C.

This module is not doing anything by its own but provide a transversal
implementation for further ones. e.g.: If you want to implement OCA
multi-company behaviour for products, install also the
'product_multi_company' or 'partner_multi_company' modules.

Code Analysis

Views touched (0)

No views found for this module.

HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (2)

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (2)
  • company_id Many2one → res.company
    comodel_name='res.company' compute='_compute_company_id' inverse='_inverse_company_id' search='_search_company_id' string='Company'
  • company_ids Many2many → res.company
    comodel_name='res.company' depends_context=('uid') string='Companies'
Public methods (2)
  • create(self, vals_list)
    @api.model_create_multi
    Discard changes in company_id field if company_ids has been given.
  • write(self, vals)
    Discard changes in company_id field if company_ids has been given.

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…