diff --git a/account_banking/record.py b/account_banking/record.py index 8d741cebf..d6ac25b0c 100644 --- a/account_banking/record.py +++ b/account_banking/record.py @@ -29,11 +29,11 @@ __doc__ = '''Ease working with fixed length records in files''' import unicodedata from datetime import datetime, date + def strpdate(str, format): return datetime.strptime(str, format).date() - class Field(object): '''Base Field class - fixed length left aligned string field in a record''' def __init__(self, name, length=1, fillchar=' ', cast=str): diff --git a/account_banking/wizard/banking_transaction_wizard.py b/account_banking/wizard/banking_transaction_wizard.py index 34147c9f1..a46e491ee 100644 --- a/account_banking/wizard/banking_transaction_wizard.py +++ b/account_banking/wizard/banking_transaction_wizard.py @@ -31,7 +31,6 @@ from openerp.osv import orm, fields from openerp.tools.translate import _ - class banking_transaction_wizard(orm.TransientModel): _name = 'banking.transaction.wizard' _description = 'Match transaction' diff --git a/account_banking_fi_patu/parser.py b/account_banking_fi_patu/parser.py index e399e87d2..43420d46b 100644 --- a/account_banking_fi_patu/parser.py +++ b/account_banking_fi_patu/parser.py @@ -7,6 +7,7 @@ import logging _logger = logging.getLogger(__name__) + def fixchars(line): """Fix the characters mangled in the input diff --git a/account_banking_uk_hsbc/mt940_parser.py b/account_banking_uk_hsbc/mt940_parser.py index 100b32e52..65449f8c0 100644 --- a/account_banking_uk_hsbc/mt940_parser.py +++ b/account_banking_uk_hsbc/mt940_parser.py @@ -28,8 +28,10 @@ import re from datetime import datetime import logging + _logger = logging.getLogger(__name__) + class HSBCParser(object): def __init__(self): diff --git a/account_banking_uk_hsbc/wizard/export_hsbc.py b/account_banking_uk_hsbc/wizard/export_hsbc.py index 012f3cf91..422a48b0e 100644 --- a/account_banking_uk_hsbc/wizard/export_hsbc.py +++ b/account_banking_uk_hsbc/wizard/export_hsbc.py @@ -33,6 +33,7 @@ from openerp.tools.translate import _ from . import paymul + def strpdate(arg, format='%Y-%m-%d'): """shortcut""" return datetime.strptime(arg, format).date()