Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
5894 Zobrazení

Hi all

How to browse many2many field values in odoo?

Avatar
Zrušit
Nejlepší odpověď

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
2
pro 19
6503
1
úno 24
2393
0
čvc 24
3567
0
čvc 22
60
1
čvc 22
3380