Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
6129 Представления

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.

Аватар
Отменить
Лучший ответ

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

 

Аватар
Отменить
Related Posts Ответы Просмотры Активность
3
янв. 23
7647
1
мар. 22
5474
1
февр. 22
5621
1
июл. 20
9411
1
янв. 24
3750