تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
4 الردود
8395 أدوات العرض

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
سبتمبر 19
98
1
يوليو 17
4173
1
مايو 16
4984
1
مارس 16
5013
2
مارس 16
7276