banking-addons-team team mailing list archive
-
banking-addons-team team
-
Mailing list archive
-
Message #01925
[Bug 1317021] [NEW] account_banking_nl_ing_mt940 parse failure
Public bug reported:
I tried out account_banking_nl_ing_mt940.
Got the following error when it parsed a .940 file that I downloaded from my ing.nl portal:
File "/var/lib/openerp/ENV/openerp/local/lib/python2.7/site-packages/openerp-7.0_20140419_231145-py2.7.egg/openerp/addons/account_banking_nl_ing_mt940/account_banking_nl_ing_mt940.py", line 54, in handle_tag_61
self.current_statement.id)
AttributeError: 'NoneType' object has no attribute 'groupdict'
I think the regex needs a modification, like:
tag_61_regex = re.compile(
'^(?P<date>\d{6})(?P<sign>[CD])(?P<amount>\d+,\d{2})N(?P<type>\w{2})'
'(?P<reference>\w{1,16})')
These are typical :61: lines:
:61:131210D90,75NDV MARF
:61:140328C302,50NVZ 0000000000040626
** Affects: banking-addons
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Banking
Addons Core Editors, which is subscribed to Banking Addons.
https://bugs.launchpad.net/bugs/1317021
Title:
account_banking_nl_ing_mt940 parse failure
Status in OpenERP Banking Addons:
New
Bug description:
I tried out account_banking_nl_ing_mt940.
Got the following error when it parsed a .940 file that I downloaded from my ing.nl portal:
File "/var/lib/openerp/ENV/openerp/local/lib/python2.7/site-packages/openerp-7.0_20140419_231145-py2.7.egg/openerp/addons/account_banking_nl_ing_mt940/account_banking_nl_ing_mt940.py", line 54, in handle_tag_61
self.current_statement.id)
AttributeError: 'NoneType' object has no attribute 'groupdict'
I think the regex needs a modification, like:
tag_61_regex = re.compile(
'^(?P<date>\d{6})(?P<sign>[CD])(?P<amount>\d+,\d{2})N(?P<type>\w{2})'
'(?P<reference>\w{1,16})')
These are typical :61: lines:
:61:131210D90,75NDV MARF
:61:140328C302,50NVZ 0000000000040626
To manage notifications about this bug go to:
https://bugs.launchpad.net/banking-addons/+bug/1317021/+subscriptions
Follow ups
References