Skip to Content
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
372 Представления

Odoo relational fields: (this case many2one)

on the level model    :           for example when I want to make sale order ,there will be a customer dropdown (the value of the field in the model will point to the comodel)

on the database layer (records) : after record insertion ,the value of relational field will be an integer (the related id)


Is that right ?


Аватар
Отменить
Лучший ответ

Hi yahya sbini,


Yes, that's correct. In Odoo, a many2one field is defined to relate to another model (the comodel), and in the user interface (e.g., a dropdown in a sale order form), you select a record from that related model. When the record is saved, the value stored in the database is the integer ID of the related record.



I Hope this information will helpful to you.

Thanks & Regards,

Email:  odoo@aktivsoftware.com           

Skype: kalpeshmaheshwari

Аватар
Отменить
Related Posts Ответы Просмотры Активность
1
мар. 25
501
2
мар. 15
16742
1
авг. 22
6138
1
янв. 19
2993
1
июл. 18
6272