Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
9035 Zobrazení

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.

Avatar
Zrušit
Nejlepší odpověď

 

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.


Avatar
Zrušit
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 Odpovědi Zobrazení Aktivita
2
dub 23
6131
3
dub 17
11449
0
kvě 16
3196
1
dub 16
9415
1
led 24
2216