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

Module: Test API

Entity: test_new_api.compute.member

Compute Method: _compute_container

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

Back to entity