コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
5808 ビュー

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!

アバター
破棄
最善の回答

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

アバター
破棄
関連投稿 返信 ビュー 活動
2
9月 17
10215
1
5月 15
22056
1
2月 24
2148
0
7月 24
3195
2
12月 22
14934