mirror of
https://github.com/OCA/account-reconcile.git
synced 2025-01-20 12:27:39 +02:00
fix account_statement_base_import
This commit is contained in:
@@ -36,8 +36,9 @@ def UnicodeDictReader(utf8_data, **kwargs):
|
|||||||
dialect = kwargs.pop('dialect')
|
dialect = kwargs.pop('dialect')
|
||||||
csv_reader = csv.DictReader(utf8_data, dialect=dialect, **kwargs)
|
csv_reader = csv.DictReader(utf8_data, dialect=dialect, **kwargs)
|
||||||
for row in csv_reader:
|
for row in csv_reader:
|
||||||
yield dict([(unicode(key, 'utf-8'), unicode(value, 'utf-8'))
|
yield dict([(unicode(key or '', 'utf-8'),
|
||||||
for key, value in row.iteritems() if key])
|
unicode(value or '', 'utf-8'))
|
||||||
|
for key, value in row.iteritems()])
|
||||||
|
|
||||||
|
|
||||||
class BankStatementImportParser(object):
|
class BankStatementImportParser(object):
|
||||||
|
|||||||
Reference in New Issue
Block a user