跳至內容
選單
此問題已被標幟
1 回覆
5800 瀏覽次數

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
10185
1
5月 15
22038
1
2月 24
2130
0
7月 24
3170
2
12月 22
14920