Partner multi-company
partner_multi_company · OCA/multi-company
-
Security25/25No findings
-
Activity25/25Last human commit 2 months ago
-
Required by5/250 modules depend on it
-
Maturity25/25In 12 Odoo series since 8.0
Heuristic over the facts below, not an audit · How it's computed
Migration considerations
- Raw `cr.execute()` INSERT/UPDATE/DELETE bypasses the ORM (no compute/constrains/tracking/mail): `INSERT INTO res_company_res_partner_rel (res_partner_id, res_company_id) SELECT id, company_id FROM res_partner WHERE company_id IS NOT NULL ON CONFLICT DO NOTHING` - re-check the table/column names still match after upgrading. migration-raw-sql-write · source
Migration review checklist, not a compatibility verdict. "Migrating to X.0" applies once you upgrade to that version; "Since X.0" means this version already ignores or rejects that code. Methodology
Description
This modules allows to select in which of the companies you want to use each of the partners. These companies will also be assigned to the partner bank accounts.
Dependencies
- Odoo dependencies
-
OCA/multi-company:
- Python dependencies
- None
- System dependencies
- None
- Required by
- None
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 2
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
res_partner_view_form |
Partner template form view (with multi-company) | res.partner | form | Inherits base.view_partner_form |
view_partner_bank_form |
res.partner.bank.form | res.partner.bank | form | Inherits base.view_partner_bank_form |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 4
No new fields.
Public methods (1)-
create(self, vals_list)@api.model_create_multi
No new fields.
Public methods (1)-
create(self, vals_list)@api.model_create_multiNeutralize the default value applied to company_id that can't be removed in the inheritance, and that will activate the inverse method, overwriting our company_ids field desired value.
-
company_idsMany2manyrelated='partner_id.company_ids'string='Companies'
No public methods.
No new fields.
Public methods (2)-
create(self, vals_list)@api.model_create_multi -
write(self, vals)
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…