odoo technical video
Video Tutorial

Set Up a One-to-Many Relationship Between Two Models in Odoo 16

MAY 5,2023

Description:

In this video, we'll explore how to set up a one-to-many relationship between two models in Odoo. This type of relationship is useful when you have records that are related to one another in a hierarchical or parent-child manner. We'll start by creating two models - one for the "one" side of the relationship and one for the "many" side. We'll define the fields for each model and set up the necessary relationships between them. Next, we'll create a Many2one field in the "many" model that references the "one" model. This will allow us to link the records in the "many" model to a single record in the "one" model. We'll then explore how to use Odoo's built-in views and forms to manage the records and their relationships. We'll create a form view for the "one" model that displays the related records from the "many" model, and we'll create a tree view for the "many" model that displays the parent record from the "one" model.

odoo videos odoo development odoo tutorial

whatsapp
location

Calicut

Cybrosys Technologies Pvt. Ltd.
Neospace, Kinfra Techno Park
Kakkancherry, Calicut
Kerala, India - 673635

location

Kochi

Cybrosys Technologies Pvt. Ltd.
1st Floor, Thapasya Building,
Infopark, Kakkanad,
Kochi, India - 682030.

location

Bangalore

Cybrosys Techno Solutions
The Estate, 8th Floor,
Dickenson Road,
Bangalore, India - 560042

Send Us A Message