From 6c0ccc6831547bd7bf65b9f2cf29f5ac6657ce61 Mon Sep 17 00:00:00 2001 From: davidwul Date: Sat, 25 Nov 2017 08:31:14 +0100 Subject: [PATCH] [9.0] [ENH] allow camt054 to be parsed (#106) * allow camt054 to be parsed --- account_bank_statement_import_camt/models/parser.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/account_bank_statement_import_camt/models/parser.py b/account_bank_statement_import_camt/models/parser.py index e4851720..ed455fde 100644 --- a/account_bank_statement_import_camt/models/parser.py +++ b/account_bank_statement_import_camt/models/parser.py @@ -216,10 +216,12 @@ class CamtParser(models.AbstractModel): ) if not re_camt.search(ns): raise ValueError('no camt: ' + ns) - # Check wether version 052 or 053: + # Check wether version 052 ,053 or 054: re_camt_version = re.compile( - r'(^urn:iso:std:iso:20022:tech:xsd:camt.053.' + 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.052.' + r'|^ISO:camt.054.' r'|^ISO:camt.053.' r'|^ISO:camt.052.)' )