Skip to Content
Menú
This question has been flagged
1 Respondre
3336 Vistes

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
Descartar
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
Descartar
Related Posts Respostes Vistes Activitat
2
d’ag. 25
2546
3
de febr. 25
3844
0
de maig 24
46
1
d’abr. 24
3543
4
de set. 23
5080