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?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Comptabilité
- Inventaire
- PoS
- Project
- MRP
Cette question a été signalée
4
Réponses
8237
Vues
\
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.
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.
Vous appréciez la discussion ? Ne vous contentez pas de lire, rejoignez-nous !
Créez un compte dès aujourd'hui pour profiter de fonctionnalités exclusives et échanger avec notre formidable communauté !
S'inscrirePublications associées | Réponses | Vues | Activité | |
---|---|---|---|---|
|
0
sept. 19
|
98 | ||
|
1
juil. 17
|
4068 | ||
|
1
mai 16
|
4888 | ||
|
1
mars 16
|
4918 | ||
|
2
mars 16
|
7197 |
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.