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

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

Back to entity