Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.
Module: Odoo Project Migration Data
Entity: odoo.project.module.migration
Compute Method: _compute_target_module_branch_id
| Inputs | Method | Outputs |
|---|---|---|
|
- module_branch_model = self.env["odoo.module.branch"] - for rec in self: - # Look for the right module technical name - module = ( - rec.replaced_by_module_id - or rec.renamed_to_module_id - or rec.source_module_branch_id.module_id - ) - rec.target_module_branch_id = module_branch_model._find( - rec.migration_path_id.target_branch_id, - module, - rec.odoo_project_id.repository_id, - domain=[("installable", "=", True)], - ) |
|
