Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
885 มุมมอง

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 ตอบกลับ มุมมอง กิจกรรม
Why odoo table are too much giant ? แก้ไขแล้ว
1
มี.ค. 25
993
how to add a related field many2one? แก้ไขแล้ว
2
มี.ค. 15
17371
1
ส.ค. 22
6824
1
ม.ค. 19
3644
1
ก.ค. 18
6911