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

Module: Project

Entity: project.project

Compute Method: _compute_total_update_ids

View 19.0
Inputs Method Outputs
+ update_count_per_project = dict(
+             self.env['project.update']._read_group(
+                 [('project_id', 'in', self.ids)],
+                 ['project_id'],
+                 ['id:count'],
+             )
+         )
+ for project in self:
+             project.update_count = update_count_per_project.get(project, 0)
  • update_count

Back to entity