partner_id=modelsE.execute_kw(dbE, uidE, passwordE, 'res.partner', 'search', ['partner_id_enterprise', '=', val['partner_id_enterprise']],)
TypeError: string indices must be integers
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
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 |