Se rendre au contenu
Menu
Cette question a été signalée
1 Répondre
6059 Vues

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
Ignorer
Meilleure réponse

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
Ignorer
Publications associées Réponses Vues Activité
3
janv. 23
7529
1
mars 22
5395
1
févr. 22
5541
1
juil. 20
9365
1
janv. 24
3674