[FIX]Account Bank Statement Ccop : name and ref were inversed

This commit is contained in:
Fabien BOURGEOIS 2018-09-21 16:25:02 +02:00
parent d9c9fa52ff
commit 64e992c3fd
2 changed files with 3 additions and 3 deletions

View File

@ -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',

View File

@ -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):