def name_get(self, cr, uid, ids, context=None):
    if context is None:
        context = {}
if isinstance(ids, int):
    ids = [ids]
res = []
if context.get('special_display_name', False):
    for record in self.browse(cr, uid, ids, context=context):
        pass
odoo - display name of many2one field combination of 2 fields