base_multi_company
Provide shared infrastructure so records can belong to multiple companies while keeping company-aware behaviors consistent across modules.
Key Features
- multi.company.abstract: Adds company_ids membership and a computed company_id to let records align with the current company while remaining linked to several companies.
- multi.company.abstract: Normalizes create and write logic to merge company_id and company_ids and provides a custom search so company-based domains also match shared records.
- base: Adjusts the base _check_company flow to inject the record's company in context so cross-model company consistency checks work with multi-company records.
- hooks: Supplies a fill_company_ids helper to populate company_ids from existing company_id values when enabling multi-company behavior on a model.