def default_operator(field):
    """Return default operator for field"""
    if field['type'] in ('char', 'text', 'many2one', 'many2many',
        'one2many', 'reference'):
        return 'ilike'
    else:
        return '='
