[MERGE]
bzr revid: christophe@tinyerp.com-20090119101950-xsgsnchn3w2y2op7
This commit is contained in:
+3
-1
@@ -281,6 +281,8 @@ def get_pg_type(f):
|
||||
f_type = ('float8', 'DOUBLE PRECISION')
|
||||
elif isinstance(f, fields.function) and f._type == 'selection':
|
||||
f_type = ('text', 'text')
|
||||
elif isinstance(f, fields.function) and f._type == 'char':
|
||||
f_type = ('varchar', 'VARCHAR(%d)' % (f.size))
|
||||
else:
|
||||
logger = netsvc.Logger()
|
||||
logger.notifyChannel("init", netsvc.LOG_WARNING, '%s type not supported!' % (type(f)))
|
||||
@@ -443,7 +445,7 @@ class orm_template(object):
|
||||
break
|
||||
i += 1
|
||||
if i == len(f):
|
||||
data[fpos] = str(r or '')
|
||||
data[fpos] = tools.ustr(r or '')
|
||||
return [data] + lines
|
||||
|
||||
def export_data(self, cr, uid, ids, fields, context=None):
|
||||
|
||||
Reference in New Issue
Block a user