Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
6100 Переглядів

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
7576
1
бер. 22
5437
1
лют. 22
5567
1
лип. 20
9386
1
січ. 24
3711