[FIX]Account Bank Statement Ccop : name and ref were inversed
This commit is contained in:
parent
d9c9fa52ff
commit
64e992c3fd
@ -22,7 +22,7 @@
|
|||||||
* For CSV published by Crédit Coopératif on their website customer space ;
|
* For CSV published by Crédit Coopératif on their website customer space ;
|
||||||
* Adds option on bank import statement wizard ;
|
* Adds option on bank import statement wizard ;
|
||||||
* Checks and processes file.""",
|
* Checks and processes file.""",
|
||||||
'version': '10.0.0.1.1',
|
'version': '10.0.0.1.2',
|
||||||
'category': 'Banking addons',
|
'category': 'Banking addons',
|
||||||
'author': 'Fabien Bourgeois',
|
'author': 'Fabien Bourgeois',
|
||||||
'license': 'AGPL-3',
|
'license': 'AGPL-3',
|
||||||
|
@ -53,14 +53,14 @@ class AccountBankStatementImport(models.TransientModel):
|
|||||||
@api.model
|
@api.model
|
||||||
def _get_coop_transaction(self, account_number, line):
|
def _get_coop_transaction(self, account_number, line):
|
||||||
""" Prepare transaction line """
|
""" Prepare transaction line """
|
||||||
return {'name': line[1],
|
return {'name': line[2] or u'/',
|
||||||
'date': time.strftime('%Y-%m-%d',
|
'date': time.strftime('%Y-%m-%d',
|
||||||
time.strptime(line[0], '%d/%m/%y')),
|
time.strptime(line[0], '%d/%m/%y')),
|
||||||
'amount': str2float(line[3] or line[4]),
|
'amount': str2float(line[3] or line[4]),
|
||||||
'unique_import_id': line[1],
|
'unique_import_id': line[1],
|
||||||
'account_number': account_number,
|
'account_number': account_number,
|
||||||
'note': line[5],
|
'note': line[5],
|
||||||
'ref': line[2]}
|
'ref': line[1]}
|
||||||
|
|
||||||
@api.model
|
@api.model
|
||||||
def _get_ccop_processed(self, data):
|
def _get_ccop_processed(self, data):
|
||||||
|
Loading…
Reference in New Issue
Block a user