跳至内容
菜单
此问题已终结
4 回复
7405 查看

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?

编写者

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.

编写者 最佳答案

 

形象
丢弃
最佳答案

\

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.

相关帖文 回复 查看 活动
0
9月 19
98
1
7月 17
3632
1
5月 16
4400
1
3月 16
4398
2
3月 16
6877