Skip to Content
Menu
This question has been flagged
1 Reply
2400 Views

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
Discard
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
Discard
Related Posts Replies Views Activity
3
Apr 24
1008
0
May 24
46
1
Apr 24
1822
4
Sep 23
3084
2
Sep 23
5592