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

Module: Github Connector - Odoo

Entity: github.repository.branch

Compute Method: _compute_runbot_url

Inputs Method Outputs
  • repository_id
  • repository_id.runbot_id_external
  • organization_id
  • organization_id.runbot_url_pattern
  • name
for branch in self:
            if not branch.repository_id.runbot_id_external:
                branch.runbot_url = False
            else:
                branch.runbot_url = branch.organization_id.runbot_url_pattern.format(
                    runbot_id_external=str(branch.repository_id.runbot_id_external),
                    branch_name=branch.name,
                )

Back to entity