Odoo Help


inverse relation for fields.Reference

Tamás Dombos
on 8/19/16, 6:41 PM 1,203 views

You can use One2many to get a reference to all the records that reference the record with a Many2one field. Is there a similar inverse field for the Reference field type?

can you elaborate a bit more?

Ajeet Yadav
on 8/20/16, 12:32 AM

I have a model with a fields.Reference that can refer to rows from 6 models. I want an inverse reference from some of those 6 models back to the original one.

Tamás Dombos
on 8/20/16, 3:15 PM
Tamás Dombos
On 8/20/16, 3:08 PM


ayman mohammed adam
On 8/20/16, 3:40 AM


dear Tamás Dombos
yes you can do it.
 as example you have:
- model1 and model 2.
field_model2= many2one with model1
field_model1= one2many with model2 by field_model2
I hope I helped you.

The question concerned the fields.Reference that allows you to refer to rows of several models, not Many2one that only allows you to refer to rows of one model.

Tamás Dombos
on 8/20/16, 3:06 PM

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 8/19/16, 6:41 PM
Seen: 1203 times
Last updated: 8/20/16, 3:16 PM