This slide will show how to set up a one2many relationship between models. One2many fields give virtual relationships between multiple objects. It contains 2 models one for one side and other for many side relationships.
How to Set Up a One-to-Many Relationship Between Two Models in Odoo 17
1. How to Set Up a One-to-
Many Relationship
Between Two Models in
Odoo 17
Enterprise
2. Introduction
Enterprise
This slide will show how to set up a one2many relationship
between models. One2many fields give virtual relationships
between multiple objects. It contains 2 models one for one side
and other for many side relationships.
3. Enterprise
Step 1: Create a model for one2many relation
● Here created a new model account.payment.line
4. Enterprise
● Here payment_id has many2one relationship with
account.payment model
● By using relation field payment_id it is possible to create
a one2many relation field in account.payment
8. For More Info.
Check our company website for related
blogs and Odoo book.
Check our YouTube channel for
functional and technical videos in Odoo.
Enterprise
www.cybrosys.com