Se rendre au contenu
Menu
Cette question a été signalée
1 Répondre
5882 Vues

Hi all

How to browse many2many field values in odoo?

Avatar
Ignorer
Meilleure réponse

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
Ignorer
Publications associées Réponses Vues Activité
2
déc. 19
6495
1
févr. 24
2371
0
juil. 24
3550
0
juil. 22
60
1
juil. 22
3358