跳至內容
選單
此問題已被標幟
1 回覆
883 瀏覽次數

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

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
1
3月 25
993
2
3月 15
17371
1
8月 22
6824
1
1月 19
3642
1
7月 18
6910