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
| 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) |
|
