Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
3311 มุมมอง

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

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
2
ส.ค. 25
2523
3
ก.พ. 25
3828
0
พ.ค. 24
46
1
เม.ย. 24
3522
4
ก.ย. 23
5070