=== modified file 'bin/osv/orm.py' --- bin/osv/orm.py 2010-05-18 13:57:53 +0000 +++ bin/osv/orm.py 2010-05-20 10:51:10 +0000 @@ -46,7 +46,7 @@ import string import netsvc import re - +import osv import pickle import fields @@ -559,7 +559,16 @@ r = self.pool.get(r._table_name).name_get(cr, uid, [r.id], context=context) r = r and r[0] and r[0][1] or '' data[fpos] = tools.ustr(r or '') - return [data] + lines + # Nasty hack + # I did not have the time to strace the crazy code above + # so the basic tips consits to replace browse null with False type that + # can be marshalled by the GTK client + res = [data] + lines + for arr in res : + for r in xrange(len(arr)): + if type(arr[r]) == osv.orm.browse_null : #We do not use isinstance as it is a class + arr[r] = False + return res def export_data(self, cr, uid, ids, fields_to_export, context=None): if not context: