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_subtask_allocated_hours

Inputs Method Outputs
for task in self:
            task.subtask_allocated_hours = sum(task.child_ids.mapped('allocated_hours'))

Back to entity