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_open_task_count

View 18.0 View 20.0
Inputs Method Outputs
self.__compute_task_count(
            count_field='open_task_count',
-             additional_domain=[('state', 'in', self.env['project.task'].OPEN_STATES)],
+             additional_domain=Domain.AND([
+                 [('state', 'in', self.env['project.task'].OPEN_STATES)],
+                 ['|', ('parent_id.is_template', '=', False), ('parent_id', '=', False)],
+             ]),
        )

Back to entity