跳至内容
菜单
此问题已终结
1 回复
6101 查看

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