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

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
7566
1
3月 22
5422
1
2月 22
5557
1
7月 20
9381
1
1月 24
3698