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

Compute Method: _compute_display_in_project

View 17.0 View 20.0
Inputs Method Outputs
  • project_id
  • parent_id
  • parent_id.project_id
+ for record in self:
+             record.display_in_project = not record.project_id or (
+                     not record.parent_id or record.project_id != record.parent_id.project_id
+             )
  • display_in_project

Back to entity