Skip to Content
मेन्यू
This question has been flagged

Hello everybody, I would like get the ID of each value inside a many2many field for the function create(), I'm using the following syntax

 instalaciones_usadas = values['x_instalaciones_usadas']

for i in instalaciones_usadas:

    aux = i.id


But I get a error: List has no attribute 'id', anyone could help me? Thanks!!


Avatar
Discard
Author

I did a UserError with the string of i making str(i[0]) and I always get "6" and I don't know why

Related Posts Replies Views Activity
4
मार्च 15
33167
1
अग॰ 21
3319
1
नव॰ 19
7140
1
दिस॰ 17
6482
1
अग॰ 17
5786