Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
6071 Vizualizări

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.

Imagine profil
Abandonează
Cel mai bun răspuns

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

 

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
3
ian. 23
7537
1
mar. 22
5396
1
feb. 22
5543
1
iul. 20
9372
1
ian. 24
3679