Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
2703 Tampilan
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'


Avatar
Buang
Post Terkait Replies Tampilan Aktivitas
1
Jun 25
392
1
Apr 25
1155
2
Jan 25
1232
0
Sep 24
4
0
Sep 24
1410