mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
[FIX] iban read method to accept a single item or a list (Dmitrijs Ledkovs)
This commit is contained in:
@@ -1098,6 +1098,8 @@ class res_partner_bank(osv.osv):
|
||||
Convert IBAN electronic format to IBAN display format
|
||||
'''
|
||||
records = self._founder.read(self, *args, **kwargs)
|
||||
if not isinstance(records, list):
|
||||
records = [records,]
|
||||
for record in records:
|
||||
if 'iban' in record and record['iban']:
|
||||
record['iban'] = unicode(sepa.IBAN(record['iban']))
|
||||
|
||||
Reference in New Issue
Block a user