Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.
Module: Base
Entity: res.company
Compute Method: _compute_parent_ids
| Inputs | Method | Outputs |
|---|---|---|
|
- for company in self.with_context(active_test=False): - company.parent_ids = self.browse(int(id) for id in company.parent_path.split('/') if id) if company.parent_path else company - company.root_id = company.parent_ids[0] |
|
