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

Module: Test ORM

Entity: test.unstored.inherits.parent

Compute Method: _compute_child_id

View 20.0
Inputs Method Outputs
  • id
+ for record in self:
+             record.child_id = self.env['test.unstored.inherits.child'].search([('parent_id', '=', record.id)], limit=1)
  • child_id

Back to entity