Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
3112 Zobrazení
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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
srp 25
482
1
srp 25
692
2
čvc 25
3223
3
čvc 25
845
1
čvn 25
2376