[MERGE] account_banking: allow res_partner_bank.read() to handle single ids as

well. (Credativ)
This commit is contained in:
Pieter J. Kersten
2011-11-08 14:10:34 +01:00
parent f392a3d610
commit b2b96dc397
8 changed files with 9 additions and 7 deletions

View File

@@ -25,7 +25,7 @@
############################################################################## ##############################################################################
{ {
'name': 'Account Banking', 'name': 'Account Banking',
'version': '0.1.66', 'version': '0.1.67',
'license': 'GPL-3', 'license': 'GPL-3',
'author': 'EduSense BV', 'author': 'EduSense BV',
'website': 'http://www.edusense.nl', 'website': 'http://www.edusense.nl',

View File

@@ -1180,6 +1180,8 @@ class res_partner_bank(osv.osv):
Convert IBAN electronic format to IBAN display format Convert IBAN electronic format to IBAN display format
''' '''
records = self._founder.read(self, *args, **kwargs) records = self._founder.read(self, *args, **kwargs)
if not hasattr(records, '__iter__'):
records = [records]
for record in records: for record in records:
if 'iban' in record and record['iban']: if 'iban' in record and record['iban']:
record['iban'] = unicode(sepa.IBAN(record['iban'])) record['iban'] = unicode(sepa.IBAN(record['iban']))

View File

@@ -26,7 +26,7 @@
############################################################################## ##############################################################################
{ {
'name': 'Account Banking PATU module', 'name': 'Account Banking PATU module',
'version': '0.66', 'version': '0.67',
'license': 'GPL-3', 'license': 'GPL-3',
'author': 'Sami Haahtinen', 'author': 'Sami Haahtinen',
'website': 'http://ressukka.net', 'website': 'http://ressukka.net',

View File

@@ -27,7 +27,7 @@
############################################################################## ##############################################################################
{ {
'name': 'abnamro (NL) Bank Statements Import', 'name': 'abnamro (NL) Bank Statements Import',
'version': '0.66', 'version': '0.67',
'license': 'GPL-3', 'license': 'GPL-3',
'author': 'Therp BV / EduSense BV', 'author': 'Therp BV / EduSense BV',
'website': 'https://launchpad.net/account-banking', 'website': 'https://launchpad.net/account-banking',

View File

@@ -25,7 +25,7 @@
############################################################################## ##############################################################################
{ {
'name': 'Account Banking NL ClieOp', 'name': 'Account Banking NL ClieOp',
'version': '0.66', 'version': '0.67',
'license': 'GPL-3', 'license': 'GPL-3',
'author': 'EduSense BV', 'author': 'EduSense BV',
'website': 'http://www.edusense.nl', 'website': 'http://www.edusense.nl',

View File

@@ -25,7 +25,7 @@
############################################################################## ##############################################################################
{ {
'name': 'Account Banking - Girotel', 'name': 'Account Banking - Girotel',
'version': '0.66', 'version': '0.67',
'license': 'GPL-3', 'license': 'GPL-3',
'author': 'EduSense BV', 'author': 'EduSense BV',
'website': 'http://www.edusense.nl', 'website': 'http://www.edusense.nl',

View File

@@ -25,7 +25,7 @@
############################################################################## ##############################################################################
{ {
'name': 'Account Banking', 'name': 'Account Banking',
'version': '0.66', 'version': '0.67',
'license': 'GPL-3', 'license': 'GPL-3',
'author': 'EduSense BV', 'author': 'EduSense BV',
'website': 'http://www.edusense.nl', 'website': 'http://www.edusense.nl',

View File

@@ -27,7 +27,7 @@
############################################################################## ##############################################################################
{ {
'name': 'Triodos (NL) Bank Statements Import', 'name': 'Triodos (NL) Bank Statements Import',
'version': '0.66', 'version': '0.67',
'license': 'GPL-3', 'license': 'GPL-3',
'author': 'Therp BV / EduSense BV', 'author': 'Therp BV / EduSense BV',
'website': 'https://launchpad.net/account-banking', 'website': 'https://launchpad.net/account-banking',