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.inverse

Compute Method: _compute_child_ids

View 20.0
Inputs Method Outputs
  • foo
+ for rec in self:
+             if rec.foo == 'has one child':
+                 rec.child_ids = [
+                     Command.clear(),
+                     Command.create({'foo': 'child'}),
+                 ]
  • child_ids

Back to entity