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

Module: Lead to Task

Entity: project.task

Compute Method: _compute_effective_lead_id

View 18.0
Inputs Method Outputs
  • lead_id
  • parent_id
  • parent_id.effective_lead_id
+ for task in self:
+             lead = task.lead_id
+             if not lead and task.parent_id:
+                 lead = task.parent_id.effective_lead_id
+             task.effective_lead_id = lead
  • effective_lead_id

Back to entity