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
| Inputs | Method | Outputs |
|---|---|---|
|
+ 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) |
|
