Skip to Content
Menu
This question has been flagged
1 Reply
6229 Views

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
Discard
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
Discard
Related Posts Replies Views Activity
3
Jan 23
7856
1
Mar 22
5649
1
Feb 22
5739
1
Jul 20
9498
1
Jan 24
3910