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
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng kýBài viết liên quan | Trả lời | Lượt xem | Hoạt động | |
---|---|---|---|---|
|
2
thg 8 25
|
2523 | ||
|
3
thg 2 25
|
3829 | ||
|
0
thg 5 24
|
46 | ||
|
1
thg 4 24
|
3524 | ||
|
4
thg 9 23
|
5071 |