Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
966 Представления

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