コンテンツへスキップ
メニュー
この質問にフラグが付けられました

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

関連投稿 返信 ビュー 活動
4
3月 15
33176
1
8月 21
3326
1
11月 19
7148
1
12月 17
6514
1
8月 17
5802