İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
6067 Görünümler

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
Vazgeç
En İyi Yanıt

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
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
3
Oca 23
7537
1
Mar 22
5396
1
Şub 22
5543
1
Tem 20
9372
1
Oca 24
3678