Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odgovori
9038 Prikazi

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
Opusti
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
Opusti
Avtor

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

Related Posts Odgovori Prikazi Aktivnost
2
apr. 23
6132
3
apr. 17
11449
0
maj 16
3198
1
apr. 16
9419
1
jan. 24
2221