Skip to Content
Menu
This question has been flagged
1 Atsakyti
6062 Rodiniai

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.

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

 

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
3
saus. 23
7533
1
kov. 22
5396
1
vas. 22
5542
1
liep. 20
9368
1
saus. 24
3676