diff --git a/account_bank_statement_import_ccoop/__manifest__.py b/account_bank_statement_import_ccoop/__manifest__.py index 1970349..0b337d6 100644 --- a/account_bank_statement_import_ccoop/__manifest__.py +++ b/account_bank_statement_import_ccoop/__manifest__.py @@ -22,7 +22,7 @@ * For CSV published by Crédit Coopératif on their website customer space ; * Adds option on bank import statement wizard ; * Checks and processes file.""", - 'version': '10.0.0.1.1', + 'version': '10.0.0.1.2', 'category': 'Banking addons', 'author': 'Fabien Bourgeois', 'license': 'AGPL-3', diff --git a/account_bank_statement_import_ccoop/wizard/account_bank_statement_import.py b/account_bank_statement_import_ccoop/wizard/account_bank_statement_import.py index 56a7535..0c2e8d9 100644 --- a/account_bank_statement_import_ccoop/wizard/account_bank_statement_import.py +++ b/account_bank_statement_import_ccoop/wizard/account_bank_statement_import.py @@ -53,14 +53,14 @@ class AccountBankStatementImport(models.TransientModel): @api.model def _get_coop_transaction(self, account_number, line): """ Prepare transaction line """ - return {'name': line[1], + return {'name': line[2] or u'/', 'date': time.strftime('%Y-%m-%d', time.strptime(line[0], '%d/%m/%y')), 'amount': str2float(line[3] or line[4]), 'unique_import_id': line[1], 'account_number': account_number, 'note': line[5], - 'ref': line[2]} + 'ref': line[1]} @api.model def _get_ccop_processed(self, data):