How To Add Relational Fields Using Odoo 14 Studio?

Описание к видео How To Add Relational Fields Using Odoo 14 Studio?

Odoo Studio lets you add several different field types, including the following relational fields:

Related fields: This is normally used to add more information from another related Model (database table). It has to be information from a Model that is already linked.
many2one:
This will create a new database relationship (in this example it’s between a product and a country).

If you drag the many2one icon onto the Form View, Odoo will display a list of all models (tables). The model you select will be linked to the current model (as a parent).

many2many:
This is similar to many2one (i.e. creates a new database relationship), except that multiple records can be selected.

These are sometimes displayed as ‘tags’, as shown on Contacts:

The process to add a many2many field is almost the same as many2one (described above), except that you will need to choose a different ‘widget’.

Selection of ‘widgets’ for a many2many field
The default ‘widget’ (many-to-many) is a list, which is probably not what you want. More information on the other widgets is here.

one2many: This is used if a “parent-child” relationship has already been defined for this table, but is not displayed on the Form View. #odoo #odoo14 #odoostudio

Комментарии

Информация по комментариям в разработке