跳至内容
菜单
此问题已终结
1 回复
3330 查看

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

 TypeError: string indices must be integers

形象
丢弃
最佳答案

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

形象
丢弃
相关帖文 回复 查看 活动
2
8月 25
2541
3
2月 25
3834
0
5月 24
46
1
4月 24
3533
4
9月 23
5073