Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
3328 Tampilan

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

 TypeError: string indices must be integers

Avatar
Buang
Jawaban Terbai

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

Avatar
Buang
Post Terkait Replies Tampilan Aktivitas
2
Agu 25
2539
3
Feb 25
3832
0
Mei 24
46
1
Apr 24
3532
4
Sep 23
5072