PEP8 on account_banking_nl_ing_mt940

This commit is contained in:
Sandy Carter
2014-08-21 13:14:38 -04:00
parent 2e786f24fc
commit 4c480d1084
2 changed files with 14 additions and 11 deletions

View File

@@ -19,19 +19,19 @@
#
##############################################################################
{
"name" : "MT940 import for Dutch ING",
"version" : "1.1",
"author" : "Therp BV",
"name": "MT940 import for Dutch ING",
"version": "1.1",
"author": "Therp BV",
"complexity": "normal",
"description": """
This addon imports the structured MT940 format as offered by the Dutch ING
bank.
""",
"category" : "Account Banking",
"depends" : [
"category": "Account Banking",
"depends": [
'account_banking_mt940',
],
"data" : [
"data": [
],
"js": [
],
@@ -42,7 +42,7 @@ bank.
"auto_install": False,
"installable": True,
"application": False,
"external_dependencies" : {
'python' : [],
"external_dependencies": {
'python': [],
},
}

View File

@@ -20,8 +20,10 @@
##############################################################################
import re
from openerp.tools.translate import _
from openerp.addons.account_banking.parsers.models import parser,\
mem_bank_transaction
from openerp.addons.account_banking.parsers.models import (
parser,
mem_bank_transaction,
)
from openerp.addons.account_banking_mt940.mt940 import MT940, str2float
@@ -30,6 +32,7 @@ class transaction(mem_bank_transaction):
'''allow transactions without remote account'''
return bool(self.execution_date) and bool(self.transferred_amount)
class IngMT940Parser(MT940, parser):
name = _('ING MT940 (structured)')
country_code = 'NL'
@@ -104,5 +107,5 @@ class IngMT940Parser(MT940, parser):
if not subfields:
self.current_transaction.message = data
self.current_transaction = None