Hi guys!!!!!
Please i have this result :
[{'project_id': (5, u'toto114'), 'id': 21}]
I want to get the first value in project_id field which means the 5.
Please what can i do!!!!!
print res[project_id'][0]????
Thanks in advance :)
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hi guys!!!!!
Please i have this result :
[{'project_id': (5, u'toto114'), 'id': 21}]
I want to get the first value in project_id field which means the 5.
Please what can i do!!!!!
print res[project_id'][0]????
Thanks in advance :)
Let's assume,
result = [{'project_id': (5, u'toto114'), 'id': 21}]
If you want to get value "5" then use following syntex,
print result[0]['project_id'][0]
res[project_id'][0] will print 5
res[project_id'][1] will print toto114
Create an account today to enjoy exclusive features and engage with our awesome community!
РегистрацияRelated Posts | Ответы | Просмотры | Активность | |
---|---|---|---|---|
|
0
мар. 25
|
1028 | ||
|
0
янв. 25
|
3109 | ||
|
1
авг. 23
|
14276 | ||
change password
Решено
|
|
1
авг. 23
|
12979 | |
|
1
июл. 23
|
10001 |