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

Compute Method: _compute_runbot_id_external

Inputs Method Outputs
  • organization_id
  • runbot_parse_url
  • complete_name
url_done = defaultdict(list)
for repository in self:
            url_done[repository.organization_id].append(repository)
for organization_id, repositories in url_done.items():
            if organization_id.runbot_parse_url:
                req = requests.get(organization_id.runbot_parse_url, timeout=10)
                runbot_list = req.content.decode().split("\n")
                for item in runbot_list:
                    for repository in repositories:
                        if item.endswith(repository.complete_name):
                            repository.runbot_id_external = item.split("|")[0]

Back to entity