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_module_migration_id

View 18.0
Inputs Method Outputs
  • migration_path_id
  • migration_path_id.id
  • source_module_branch_id
  • source_module_branch_id.id
+ migration_model = self.env["odoo.module.branch.migration"]
+ for rec in self:
+             rec.module_migration_id = migration_model.search(
+                 [
+                     ("migration_path_id", "=", rec.migration_path_id.id),
+                     ("module_branch_id", "=", rec.source_module_branch_id.id),
+                 ]
+             )
  • module_migration_id

Back to entity