Commit 89a9f12d authored by Quentin Defenouillere's avatar Quentin Defenouillere Committed by Romain Bignon

[cragr] Add default='' to internal recipients

For some recipients that are present in both internal and external lists,
the "accountNatureLongLabel" does not appear in the
JSON so we must put a default value, even if these recipients will not
appear in the final list of recipients because they will be skipped in
the browser.py (recipients without the "accountNatureLongLabel" key are
actually proxy accounts)
parent 82e593eb
......@@ -69,7 +69,7 @@ class RecipientsPage(LoggedPage, JsonPage):
klass = Recipient
obj_id = Dict('accountNumber')
obj_label = Dict('accountNatureLongLabel')
obj_label = Dict('accountNatureLongLabel', 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