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

View 18.0
Inputs Method Outputs
  • replaced_by_module_id
  • renamed_to_module_id
  • source_module_branch_id
  • source_module_branch_id.module_id
  • migration_path_id
  • migration_path_id.target_branch_id
  • odoo_project_id
  • odoo_project_id.repository_id
- 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)],
-             )
  • target_module_branch_id

Back to entity