Skip to Content
Menu
This question has been flagged
1 Atsakyti
5830 Rodiniai

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!

Portretas
Atmesti
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')

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
2
rugs. 17
10243
1
geg. 15
22077
1
vas. 24
2179
0
liep. 24
3244
2
gruod. 22
14953