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.onchange
Compute Method: _compute_line_ids
| Inputs | Method | Outputs |
|---|---|---|
|
+ for record in self: + if not record.foo: + continue + if any(line.foo == record.foo for line in record.line_ids): + continue + # add a line with the same value as 'foo' + record.line_ids = [Command.create({'foo': record.foo})] |
|
