Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odgovori
6061 Prikazi

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.

Avatar
Opusti
Best Answer

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"}}
)

 

Avatar
Opusti
Related Posts Odgovori Prikazi Aktivnost
3
jan. 23
7532
1
mar. 22
5395
1
feb. 22
5542
1
jul. 20
9367
1
jan. 24
3676