Commit 7e86b7cd authored by Sylvie Ye's avatar Sylvie Ye Committed by ntome

[cragr/api] retrive more clear recipient name

parent 837064fd
......@@ -27,7 +27,7 @@ from weboob.capabilities.bank import (
Account, Recipient, Transfer, TransferBankError,
)
from weboob.browser.filters.standard import (
CleanDecimal, Date, CleanText, Coalesce,
CleanDecimal, Date, CleanText, Coalesce, Format,
)
from weboob.browser.filters.json import Dict
......@@ -77,7 +77,9 @@ class RecipientsPage(LoggedPage, JsonPage):
klass = Recipient
obj_id = Dict('accountNumber')
obj_label = Dict('accountNatureLongLabel', default='')
obj_label = CleanText(Format('%s %s',
Dict('accountHolderLongDesignation'),
Dict('accountNatureShortLabel', default='')))
obj_iban = Dict('ibanCode')
obj_category = 'Interne'
obj_enabled_at = date.today()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment