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

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
7579
1
3月 22
5441
1
2月 22
5569
1
7月 20
9388
1
1月 24
3713