Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odgovori
3309 Prikazi

partner_id=modelsE.execute_kw(dbE, uidE, passwordE, 'res.partner', 'search', ['partner_id_enterprise', '=', val['partner_id_enterprise']],)

 TypeError: string indices must be integers

Avatar
Opusti
Best Answer

Hi,

It seems the type of variable val is string, so you cannot call like val['partner_id_enterprise'], please verify the data type is expected to be string itself, or make necessary change.

Thanks

Avatar
Opusti
Related Posts Odgovori Prikazi Aktivnost
2
avg. 25
2523
3
feb. 25
3828
0
maj 24
46
1
apr. 24
3522
4
sep. 23
5070