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