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

Inputs Method Outputs
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
            )

Back to entity