Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda

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
Buang
Penulis

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

Post Terkait Replies Tampilan Aktivitas
4
Mar 15
33144
1
Agu 21
3291
1
Nov 19
7076
1
Des 17
6471
1
Agu 17
5760