Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odgovori
5873 Prikazi

Hi all

How to browse many2many field values in odoo?

Avatar
Opusti
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
Opusti
Related Posts Odgovori Prikazi Aktivnost
2
dec. 19
6491
1
feb. 24
2350
0
jul. 24
3530
0
jul. 22
60
1
jul. 22
3349