Skip to Content
Menu
This question has been flagged
1 Reply
675 Views

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

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

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