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
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
3
Apr 24
|
1008 | ||
|
0
May 24
|
46 | ||
|
1
Apr 24
|
1822 | ||
|
4
Sep 23
|
3084 | ||
|
2
Sep 23
|
5592 |