跳至內容
選單
此問題已被標幟
1 回覆
3322 瀏覽次數

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
2539
3
2月 25
3832
0
5月 24
46
1
4月 24
3531
4
9月 23
5072