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

Module: Agreement - Project

Entity: agreement

Compute Method: _compute_task_count

Inputs Method Outputs
  • id
for ag in self:
            count = self.env["project.task"].search_count(
                [("agreement_id", "=", ag.id)]
            )
            ag.task_count = count

Back to entity