Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
6451 Widoki

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.

Awatar
Odrzuć
Najlepsza odpowiedź

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

 

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
3
sty 23
8481
1
mar 22
5989
1
lut 22
6059
1
lip 20
9833
1
sty 24
4568