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: odoo.module.version

Compute Method: _compute_github_url

Inputs Method Outputs
for version in self:
            repo_id = version.repository_id
            version.github_url = (
                "https://github.com/{organization_name}/"
                "{repository_name}/tree/{branch_name}/{rest_path}".format(
                    organization_name=repo_id.organization_id.github_name,
                    repository_name=repo_id.name,
                    branch_name=version.repository_branch_id.name,
                    rest_path=(version.full_module_path or "")[
                        len(version.repository_branch_id.local_path or "") + 1 :
                    ],
                )
            )

Back to entity