Skip to Content
Menu
This question has been flagged
1 Reply
5964 Views

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
Discard
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
Discard
Related Posts Replies Views Activity
2
Sep 17
10357
1
May 15
22187
1
Feb 24
2253
0
Jul 24
3394
2
Dec 22
15146