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

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
6492
1
2月 24
2363
0
7月 24
3541
0
7月 22
60
1
7月 22
3355