Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.

Module: Odoo Repository Migration Data

Entity: odoo.module.branch.migration

Compute Method: _compute_moved_to_oca

View 18.0
Inputs Method Outputs
  • org_id
  • target_module_branch_id
  • target_module_branch_id.org_id
+ org_oca = self.env.ref(
+             "odoo_repository.odoo_repository_org_oca", raise_if_not_found=False
+         )
+ for rec in self:
+             rec.moved_to_oca = False
+             if not org_oca:
+                 continue
+             rec.moved_to_oca = (
+                 rec.org_id != org_oca and rec.target_module_branch_id.org_id == org_oca
+             )
  • moved_to_oca

Back to entity