Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
6598 Tampilan

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
Buang
Jawaban Terbai

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
Buang
Post Terkait Replies Tampilan Aktivitas
3
Jan 23
8963
1
Mar 22
6298
1
Feb 22
6360
1
Jul 20
10112
1
Okt 25
393