Crm Stage Multi Company

crm_stage_multi_company
REPOSITORY
REPOSITORYOCA/multi-company
GIT
GIThttps://github.com/OCA/multi-company.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/multi-company/tree/18.0/crm_stage_multi_company
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYUncategorized
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), ACS0NE SA/NV
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), ACS0NE SA/NV
COMMITTERS
COMMITTERSWeblate, OCA-git-bot, oca-ci, hda
WEBSITE
WEBSITEhttps://github.com/OCA/multi-company
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 19:30:09
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - crm
    - base_setup
    - base
    - web
    - sales_team
    - mail
    - bus
    - web_tour
    - html_editor
    - calendar
    - resource
    - utm
    - contacts
    - digest
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - phone_validation
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
This module adds support for multi company on crm stage.

The new multi company rule prevents any user without access to all stages to open
the CRM application. This behaviour comes from the kanban view and especially from
he read_group (_read_group_fill_results) which tries to retrieve fold information
from the stages even those without any lead. So to only do this on accessible
stages a search is made by the current user over the stage ids returned by the
group_expand method which is initially launched through a sudo.

Code Analysis

Views touched (3)
XML IDNameModelTypeStatus
crm_lead_stage_search Stage - Search (in crm_stage_multi_company) crm.stage field Inherits crm.crm_lead_stage_search
crm_stage_form crm.stage.form (in crm_stage_multi_company) crm.stage field Inherits crm.crm_stage_form
crm_stage_tree crm.stage.tree (in crm_stage_multi_company) crm.stage field Inherits crm.crm_stage_tree
Models touched (2)

New fields (1)
  • stage_id Many2one
    check_company=True
Public methods (0)

No public methods.

New fields (1)
  • company_id Many2one → res.company
    default=<expr> help='Specific company that uses this stage. Other companies will not be able to see or use this stage.' index=True string='Company' args: 'res.company'
Public methods (0)

No public methods.

REPOSITORY
REPOSITORYOCA/multi-company
GIT
GIThttps://github.com/OCA/multi-company.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/multi-company/tree/16.0/crm_stage_multi_company
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYUncategorized
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), ACS0NE SA/NV
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), ACS0NE SA/NV
COMMITTERS
COMMITTERSWeblate, OCA-git-bot, oca-ci, Marina Alapont
WEBSITE
WEBSITEhttps://github.com/OCA/multi-company
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:53:41
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - crm
    - base_setup
    - base
    - web
    - sales_team
    - mail
    - bus
    - web_tour
    - calendar
    - resource
    - utm
    - web_kanban_gauge
    - contacts
    - digest
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - phone_validation
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (3)
XML IDNameModelTypeStatus
crm_lead_stage_search Stage - Search (in crm_stage_multi_company) crm.stage field Inherits crm.crm_lead_stage_search
crm_stage_form crm.stage.form (in crm_stage_multi_company) crm.stage field Inherits crm.crm_stage_form
crm_stage_tree crm.stage.tree (in crm_stage_multi_company) crm.stage field Inherits crm.crm_stage_tree
Models touched (2)

New fields (1)
  • stage_id Many2one
    check_company=True
Public methods (0)

No public methods.

New fields (1)
  • company_id Many2one → res.company
    default=<expr> help='Specific company that uses this stage. Other companies will not be able to see or use this stage.' index=True string='Company' args: 'res.company'
Public methods (0)

No public methods.

REPOSITORY
REPOSITORYOCA/multi-company
GIT
GIThttps://github.com/OCA/multi-company.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/multi-company/tree/12.0/crm_stage_multi_company
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYUncategorized
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), ACS0NE SA/NV
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), ACS0NE SA/NV
COMMITTERS
COMMITTERSoca-travis, OCA-git-bot, Quentin Groulard
WEBSITE
WEBSITEhttps://github.com/OCA/multi-company
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:29:14
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - crm
    - base_setup
    - base
    - web
    - sales_team
    - mail
    - bus
    - web_tour
    - calendar
    - resource
    - fetchmail
    - utm
    - contacts
    - digest
    - portal
    - http_routing
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
crm_stage_form crm.stage.form (in crm_stage_multi_company) crm.stage field Inherits crm.crm_stage_form
Models touched (1)

New fields (1)
  • company_id Many2one → res.company
    default=<expr> help='Specific company that uses this stage. Other companies will not be able to see or use this stage.' index=True string='Company' args: 'res.company'
Public methods (0)

No public methods.

STATUS
STATUSOpen migration PR - not merged yet for this version
REPOSITORY
REPOSITORYOCA/multi-company
PULL REQUEST
PULL REQUEST[19.0] [MIG] crm_stage_multi_company: Migrate to 19.0 (#989)
STATUS
STATUSOpen migration PR - not merged yet for this version
REPOSITORY
REPOSITORYOCA/multi-company
PULL REQUEST
PULL REQUEST[19.0][MIG] crm_stage_multi_company: Migration to 19.0 (#920)