跳至内容
菜单
此问题已终结
1 回复
5974 查看

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
10366
1
5月 15
22199
1
2月 24
2256
0
7月 24
3403
2
12月 22
15149