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

Compute Method: _compute_ignore

View 17.0
Inputs Method Outputs
  • organization_id
  • organization_id.ignored_repository_names
  • name
  • is_ignored
- for repository in self:
-             ignored_txt = repository.organization_id.ignored_repository_names
-             repository.is_ignored = (
-                 ignored_txt and repository.name in ignored_txt.split("\n")
-             )
-             repository.color = repository.is_ignored and 1 or 0
  • is_ignored
  • color

Back to entity