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

Hi all

How to browse many2many field values in odoo?

形象
丢弃
最佳答案

hope this will help you...

_columns = {

         'A_ids': fields.many2many('objectA', 'objectAB_rel','B_id','A_id', 'Aid'), 

.}

list=[]

a_obj=self.browse(cr,uid,context=context)

list += [x.A_id for x in a_obj.A_ids]




形象
丢弃
相关帖文 回复 查看 活动
2
12月 19
6482
1
2月 24
2330
0
7月 24
3506
0
7月 22
60
1
7月 22
3343