replace unicode by ustr

This commit is contained in:
florian-dacosta
2014-07-23 20:03:03 +02:00
parent 5e8830fde8
commit 02ec16a6aa

View File

@@ -21,6 +21,7 @@
import datetime import datetime
from file_parser import FileParser from file_parser import FileParser
from openerp.addons.account_statement_base_import.parser.file_parser import float_or_zero from openerp.addons.account_statement_base_import.parser.file_parser import float_or_zero
from openerp.loglevels import ustr
try: try:
import xlrd import xlrd
except: except:
@@ -36,8 +37,8 @@ class GenericFileParser(FileParser):
def __init__(self, parse_name, ftype='csv', **kwargs): def __init__(self, parse_name, ftype='csv', **kwargs):
conversion_dict = { conversion_dict = {
'ref': unicode, 'ref': ustr,
'label': unicode, 'label': ustr,
'date': datetime.datetime, 'date': datetime.datetime,
'amount': float_or_zero, 'amount': float_or_zero,
} }