Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
5244 Представления

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!!


Аватар
Отменить
Автор

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 Ответы Просмотры Активность
4
мар. 15
33159
1
авг. 21
3309
1
нояб. 19
7106
1
дек. 17
6479
1
авг. 17
5777