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

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

Back to entity