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
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
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
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up