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

Entity: odoo.project

Compute Method: _compute_repository_branch_id

Inputs Method Outputs
for rec in self:
            rec.repository_branch_id = False
            if not rec.repository_id or not rec.odoo_version_id:
                continue
            rec.repository_branch_id = rec.repository_id.branch_ids.filtered(
                lambda rb, rec=rec: rb.branch_id == rec.odoo_version_id
            )

Back to entity