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

Module: Odoo MCA

Entity: odoo.module.branch

Compute Method: _compute_url

View 18.0
Inputs Method Outputs
  • repository_id
  • branch_name
  • repository_branch_id
  • repository_branch_id.cloned_branch
  • addons_path
  • module_name
- for rec in self:
-             rec.url = False
-             if not rec.repository_id:
-                 continue
-             branch = rec.branch_name
-             if rec.repository_branch_id.cloned_branch:
-                 branch = rec.repository_branch_id.cloned_branch
-             module_path = "/".join([rec.addons_path or ".", rec.module_name])
-             rec.url = rec.repository_id._get_resource_url(branch, module_path)
  • url

Back to entity