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

Entity: github.repository.branch

Compute Method: _compute_local_path

View 17.0 View 18.0
Inputs Method Outputs
  • organization_id
  • organization_id.github_name
  • complete_name
source_path = self._get_source_path()
if not source_path and not tools.config["test_enable"]:
            raise exceptions.UserError(
-                 _(
+                 self.env._(
                    "source_code_local_path should be defined in your "
                    " configuration file"
                )
            )
for branch in self:
            branch.local_path = os.path.join(
                source_path, branch.organization_id.github_name, branch.complete_name
            )
  • local_path

Back to entity