Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2875 มุมมอง
Hello,
I'm trying to retrieve partners records through external API; however the selection fields return only the option id not the label, how can i get the labels instead?

sample code, where partner_type, pharmacy_type and partner_sector are selection fields:

result = models.execute_kw(config.db, uid, config.pwd, 'res.partner', 'search_read',
[[]], {'fields': ['id',
'active',
'display_name',
'distributor_code',
'city',
'partner_type',
'pharmacy_type',
'partner_sector',
'assigned_ids', 'company_id'


อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
0
ก.ค. 25
178
1
มิ.ย. 25
1864
1
ก.ค. 25
849
Original project names via the API แก้ไขแล้ว
1
เม.ย. 25
1522
2
ม.ค. 25
1684