What Is one2many and many2many Fields in Odoo and Its Uses?
Odoo
Android
Angular
AR/VR
CTO
IOT
Java
JavaScript
Laravel
Magento
Net
NodeJS
PHP
Python
React Native
ReactJS
SAP
UX/UI
VueJS
WordPress
Xamarin
Here we have an answer from our dedicated Odoo developer Anar with more than 10 years of experience in web development sphere. Let’s see what he has answered on the question “What is one2many and many2many fields in Odoo and its uses?”
Many2many is one of the relation types in databases. There are 3 types: One2many – each class has teacher; Many2one – each class has list of students but student can’t be in more than one class. And two sided relation: Many2many. All students have list of exams to pass and exams are not enclosed to one student.
All students have list of exams to pass and exams are not enclosed to one student.
In Odoo there are several widgets for this fields. It could be simple table (tree) used by default, or you can use custom widgets: tags, checkboxes, canban, or even design your own or use from community module (for example web_m2x_options module).