Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
1 Responder
6076 Visualizações

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
Cancelar
Melhor resposta

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
Cancelar
Publicações relacionadas Respostas Visualizações Atividade
3
jan. 23
7541
1
mar. 22
5399
1
fev. 22
5546
1
jul. 20
9374
1
jan. 24
3682