Skip to Content
Menu
This question has been flagged
1 Odpoveď
5799 Zobrazenia

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
Zrušiť
Best Answer

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
Zrušiť
Related Posts Replies Zobrazenia Aktivita
2
sep 17
10180
1
máj 15
22034
1
feb 24
2128
0
júl 24
3167
2
dec 22
14913