Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd

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
Annuleer
Auteur

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

Gerelateerde posts Antwoorden Weergaven Activiteit
4
mrt. 15
33147
1
aug. 21
3299
1
nov. 19
7078
1
dec. 17
6473
1
aug. 17
5766