コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
3310 ビュー

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
2523
3
2月 25
3828
0
5月 24
46
1
4月 24
3522
4
9月 23
5070