Skip to Content
Menú
This question has been flagged
1 Respondre
6063 Vistes

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
Descartar
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
Descartar
Related Posts Respostes Vistes Activitat
3
de gen. 23
7534
1
de març 22
5396
1
de febr. 22
5542
1
de jul. 20
9368
1
de gen. 24
3676