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.organization

Compute Method: _compute_team_qty

View 17.0
Inputs Method Outputs
  • id
- data = self.env["github.team"].read_group(
-             [("organization_id", "in", self.ids)],
-             ["organization_id"],
-             ["organization_id"],
-         )
- mapping = {
-             data["organization_id"][0]: data["organization_id_count"] for data in data
-         }
- for item in self:
-             item.team_qty = mapping.get(item.id, 0)
  • team_qty

Back to entity