Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
5992 Vistas

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
Descartar
Mejor respuesta

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
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
3
ene 23
7341
1
mar 22
5277
1
feb 22
5420
1
jul 20
9239
1
ene 24
3520