partner_multi_company
Let administrators choose in which companies each partner record is available.
Key Features
- res.partner: Allow selecting multiple companies per partner to control cross-company visibility instead of a single company assignment.
- res.partner: Propagate chosen companies to commercial children and neutralize default company_id handling during creation to respect the selection.
- res.partner: Enforce that partners include every company of their linked users and preserve company_ids when a user’s company changes.
- res.users: When users are created or their company set changes, mirror those companies onto the related partner.
- res.company: When a new company is created, add it to the partners of its users if those partners already restrict companies.
- security: Replace the partner access rule to use company_ids and initialize partner-company links so existing visibility restrictions are preserved, restoring the original rule on uninstall.