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.timeline

Compute Method: _compute_migration_ids

Inputs Method Outputs
for rec in self:
            current_module = rec.module_branch_id.module_id
            next_module = rec.next_module_id
            impacted_modules = current_module + next_module
            rec.migration_ids = (
                self.env["odoo.module.branch.migration"]
                .search(
                    [
                        (
                            "target_branch_id.sequence",
                            ">=",
                            rec.odoo_version_id.sequence,
                        ),
                        "|",
                        "|",
                        ("module_id", "=", current_module.id),
                        ("renamed_to_module_id", "in", impacted_modules.ids),
                        ("replaced_by_module_id", "in", impacted_modules.ids),
                    ]
                )
                .sudo()
            )

Back to entity