Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
5708 Zobrazení

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šit
Nejlepší odpověď

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šit
Related Posts Odpovědi Zobrazení Aktivita
2
zář 17
10037
1
kvě 15
21892
1
úno 24
2006
0
čvc 24
3064
2
pro 22
14782