From 2b46d03aac38e672d4759c1b3a6a98666bad0c7b Mon Sep 17 00:00:00 2001 From: Stefan Rijnhart Date: Sun, 19 May 2013 22:32:36 +0200 Subject: [PATCH] [FIX] Split off BIC part from IBAN in Triodos statements --- account_banking_nl_triodos/__openerp__.py | 2 +- account_banking_nl_triodos/triodos.py | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/account_banking_nl_triodos/__openerp__.py b/account_banking_nl_triodos/__openerp__.py index 0d1b37218..1f510f554 100644 --- a/account_banking_nl_triodos/__openerp__.py +++ b/account_banking_nl_triodos/__openerp__.py @@ -27,7 +27,7 @@ ############################################################################## { 'name': 'Triodos (NL) Bank Statements Import', - 'version': '0.92', + 'version': '0.168', 'license': 'GPL-3', 'author': 'Therp BV / EduSense BV', 'website': 'https://launchpad.net/account-banking', diff --git a/account_banking_nl_triodos/triodos.py b/account_banking_nl_triodos/triodos.py index 509652e54..d60c1f9cc 100644 --- a/account_banking_nl_triodos/triodos.py +++ b/account_banking_nl_triodos/triodos.py @@ -151,8 +151,14 @@ class transaction(models.mem_bank_transaction): def parse_message(self): ''' Parse structured message parts into appropriate attributes. - No processing done here for Triodos, maybe later. ''' + # IBAN accounts are prefixed by BIC + if self.remote_account: + parts = self.remote_account.split(' ') + if len(parts) == 2: + self.remote_bank_bic = parts[0] + self.remote_account = parts[1] + class statement(models.mem_bank_statement): '''