allow camt054 to be parsed

IMP README
This commit is contained in:
david wulliamoz
2017-04-18 17:24:46 +02:00
committed by eLBati
parent 98adf38f7f
commit a8fb175913
3 changed files with 5 additions and 3 deletions

View File

@@ -4,7 +4,7 @@
Bank Statement Parse Camt Bank Statement Parse Camt
========================= =========================
Module to import SEPA CAMT.053 Format bank statement files. Module to import SEPA CAMT.053 and CAMT.054 Format bank statement files.
Based on the Banking addons framework. Based on the Banking addons framework.

View File

@@ -3,7 +3,7 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{ {
'name': 'CAMT Format Bank Statements Import', 'name': 'CAMT Format Bank Statements Import',
'version': '10.0.1.1.0', 'version': '10.0.1.1.1',
'license': 'AGPL-3', 'license': 'AGPL-3',
'author': 'Odoo Community Association (OCA), Therp BV', 'author': 'Odoo Community Association (OCA), Therp BV',
'website': 'https://github.com/OCA/bank-statement-import', 'website': 'https://github.com/OCA/bank-statement-import',

View File

@@ -210,10 +210,12 @@ class CamtParser(models.AbstractModel):
) )
if not re_camt.search(ns): if not re_camt.search(ns):
raise ValueError('no camt: ' + ns) raise ValueError('no camt: ' + ns)
# Check wether version 052 or 053: # Check wether version 052 ,053 or 054:
re_camt_version = re.compile( re_camt_version = re.compile(
r'(^urn:iso:std:iso:20022:tech:xsd:camt.054.'
r'(^urn:iso:std:iso:20022:tech:xsd:camt.053.' r'(^urn:iso:std:iso:20022:tech:xsd:camt.053.'
r'|^urn:iso:std:iso:20022:tech:xsd:camt.052.' r'|^urn:iso:std:iso:20022:tech:xsd:camt.052.'
r'|^ISO:camt.054.'
r'|^ISO:camt.053.' r'|^ISO:camt.053.'
r'|^ISO:camt.052.)' r'|^ISO:camt.052.)'
) )