Launch offer
Business website $150 USD Custom plugin $200 USD Ready in 5 days
Get a quote
Odoo

One2many Fields in Odoo

Expose the inverse of a Many2one as a list of child lines.

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')

Leave a reply

Your email address will not be published. Required fields are marked *