Se rendre au contenu
Menu
Cette question a été signalée
1 Répondre
5801 Vues

Hello, I have Odoo8.

I have a model A which has a many2many field relation to model B. Is there any way to access to the many2many field from model B? Thanks!

Avatar
Ignorer
Meilleure réponse

You create a similar many2many field in model B, which is based on the same relation object.

fields.many2many('other.object.name', 'relation object', 'actual.object.id', 'other.object.id', 'Field Name')

Avatar
Ignorer
Publications associées Réponses Vues Activité
2
sept. 17
10190
1
mai 15
22039
1
févr. 24
2131
0
juil. 24
3172
2
déc. 22
14924