Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2959 Lượt xem
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'


Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 8 25
357
2
thg 7 25
2807
3
thg 7 25
624
1
thg 6 25
2078
1
thg 8 25
993