Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
4 Odgovori
8401 Prikazi

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?

Avatar
Opusti

can you elaborate a bit more?

Avtor

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.

Avtor Best Answer

 

Avatar
Opusti
Best Answer

\

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.
Avatar
Opusti
Avtor

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.

Related Posts Odgovori Prikazi Aktivnost
0
sep. 19
98
1
jul. 17
4176
1
maj 16
4985
1
mar. 16
5014
2
mar. 16
7278