mirror of
https://github.com/OCA/account-reconcile.git
synced 2025-01-20 12:27:39 +02:00
[FIX] a regression, the name and date fields had default values until recently.
This commit is contained in:
@@ -20,7 +20,7 @@
|
|||||||
##############################################################################
|
##############################################################################
|
||||||
|
|
||||||
{'name': "Bank statement base import",
|
{'name': "Bank statement base import",
|
||||||
'version': '1.0.2',
|
'version': '1.0.3',
|
||||||
'author': 'Camptocamp',
|
'author': 'Camptocamp',
|
||||||
'maintainer': 'Camptocamp',
|
'maintainer': 'Camptocamp',
|
||||||
'category': 'Finance',
|
'category': 'Finance',
|
||||||
|
|||||||
@@ -20,6 +20,7 @@
|
|||||||
##############################################################################
|
##############################################################################
|
||||||
import base64
|
import base64
|
||||||
import csv
|
import csv
|
||||||
|
from datetime import datetime
|
||||||
|
|
||||||
|
|
||||||
def UnicodeDictReader(utf8_data, **kwargs):
|
def UnicodeDictReader(utf8_data, **kwargs):
|
||||||
@@ -121,10 +122,10 @@ class BankStatementImportParser(object):
|
|||||||
:return: dict of vals that represent additional infos for the statement
|
:return: dict of vals that represent additional infos for the statement
|
||||||
"""
|
"""
|
||||||
return {
|
return {
|
||||||
'name': self.statement_name,
|
'name': self.statement_name or '/',
|
||||||
'balance_start': self.balance_start,
|
'balance_start': self.balance_start,
|
||||||
'balance_end_real': self.balance_end,
|
'balance_end_real': self.balance_end,
|
||||||
'date': self.statement_date
|
'date': self.statement_date or datetime.now()
|
||||||
}
|
}
|
||||||
|
|
||||||
def get_st_line_vals(self, line, *args, **kwargs):
|
def get_st_line_vals(self, line, *args, **kwargs):
|
||||||
|
|||||||
Reference in New Issue
Block a user