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_show_ratings

Inputs Method Outputs
projects_with_rating_active = self.env['project.task.type'].search_fetch(
            domain=[
                ('project_ids', 'in', self.ids),
                ('rating_active', '=', True),
            ],
            field_names=['project_ids'],
        ).project_ids
for project in self:
            project.show_ratings = project in projects_with_rating_active

Back to entity