Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
997 Переглядів

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

Аватар
Відмінити
Найкраща відповідь

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.

Аватар
Відмінити
Автор

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