Skip to Content
Menu
This question has been flagged
1 Reply
5088 Views

Hi all

How to browse many2many field values in odoo?

Avatar
Discard
Best Answer

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]




Avatar
Discard
Related Posts Replies Views Activity
2
Dec 19
5191
1
Feb 24
836
0
Jul 24
1500
0
Jul 22
60
1
Jul 22
1404