mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
PEP8 on account_banking_nl_ing_mt940
This commit is contained in:
@@ -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': [],
|
||||
},
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user