Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
6624 Zobrazení

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
Zrušit
Nejlepší odpověď

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
3
led 23
8990
1
bře 22
6305
1
úno 22
6366
1
čvc 20
10126
1
říj 25
399