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

Hi,

I'am retrieving records by XML-RPC but for invoices, leads etc the state and other selection values only return the key value like "draft, new". Is it possible to retrieve the translated value also for selection fields while fetching records from the api??


Thanks.

アバター
破棄
最善の回答

Hi Riza,

You can specify the lang in the context of your query. Example :

models.execute_kw(db, uid, password, model_name, 'read', [id], 
    {'context': {'lang': "fr_FR"}}
)

 

アバター
破棄
関連投稿 返信 ビュー 活動
3
1月 23
7536
1
3月 22
5396
1
2月 22
5542
1
7月 20
9370
1
1月 24
3678