تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
6117 أدوات العرض

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

 

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
3
يناير 23
7600
1
مارس 22
5459
1
فبراير 22
5585
1
يوليو 20
9394
1
يناير 24
3728