Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
9024 Vizualizări

Hi by using the developer mode  how can i create a related field from another custom field and here is my eg :


- i create a new custom field named ( object ) on sale.order, so  after creating an invoice i should find the same value for the ( object ).


i already made an a related field from another existing field ( name ) by adding partner_id.name on related field.


 

But for a custom field i found some difficult on what i should put in the case of Related field, so i hope  that the community help me to find the correct way thanks.

Imagine profil
Abandonează
Cel mai bun răspuns

 

Related Fields Always create with the Many2one Fields.

so just ensure that custom fields should be Many2one in your case.

in sort  it should be like custom_field_id not custom_field_ids(12m or m2m)

NOTE: i am not saying that 12m and m2m can't be create as related field , i am saying  the reference field  of related fields(either 12m ,m21 or m2m ) should always be the many2one , other wise it can lead to Singleton Error 

For more details Refer this image

http://prntscr.com/bajb7c


Hope it may help in your case.


Imagine profil
Abandonează
Autor

that's great, in my case what i should put in the Relation object for the reference field and the other field

Related Posts Răspunsuri Vizualizări Activitate
2
apr. 23
6129
3
apr. 17
11443
0
mai 16
3186
1
apr. 16
9409
1
ian. 24
2213