Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
878 Visualizzazioni

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 ?


Avatar
Abbandona
Risposta migliore

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

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
1
mar 25
993
2
mar 15
17345
1
ago 22
6798
1
gen 19
3616
1
lug 18
6908