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

Module: Project Task Ancestor

Entity: project.task

Compute Method: _compute_ancestor_id

Inputs Method Outputs
  • parent_id
  • parent_id.ancestor_id
for task in self:
            task.ancestor_id = task.parent_id.ancestor_id or task.parent_id

Back to entity