This question has been flagged
1 Reply
7592 Views

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
Discard
Best Answer

 

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
Discard
Author

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