One2many Fields in Odoo — a practical guide to Odoo One2many with clear examples you can reuse in real projects.
Odoo Tutorial Series (22/112). Prefer one article? Read the complete Odoo tutorial.
Short description
One2many is virtual; the inverse Many2one stores the relation.
One2many
line_ids = fields.One2many('sale.order.line', 'order_id', string='Lines')