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

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
6503
1
2月 24
2385
0
7月 24
3556
0
7月 22
60
1
7月 22
3372