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_project_id

Inputs Method Outputs
  • id
for ag in self:
            project = self.env["project.project"].search([("agreement_id", "=", ag.id)])
            ag.project_id = project

Back to entity