=== modified file 'bin/osv/orm.py' --- bin/osv/orm.py 2009-01-17 19:22:14 +0000 +++ bin/osv/orm.py 2009-01-19 09:43:11 +0000 @@ -281,6 +281,8 @@ 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)))