Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
965 Tampilan

I have a simple model where i have field_a and field_b

i want to make a related field where the relation is to either field_a or field_b


field_a and field_b are both pulling from the same model as many2one 

any thoughts?


TIA

Avatar
Buang
Jawaban Terbai

You cannot have a related field to 2 other fields, it doest make sense.
i think that you want to have many2many computed, that gets the values from the other 2 many2one fields. (so u can have multiple values in that field)
you should also set the depends of that compute method with the 2 many2one fields.

Avatar
Buang
Penulis

Thanks Marcelo....i will go and test it