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_orm.compute.member

Compute Method: _compute_container

View 20.0
Inputs Method Outputs
  • name
+ container = self.env['test_orm.compute.container']
+ for member in self:
+             member.container_id = container.search([('name', '=', member.name)], limit=1)
  • container_id

Back to entity