name_get(cr, uid, ids,context=None)
Returns tuples with the text representation of requested objects for to-many relationships
# Ideas should be shown with invention date def name_get(self,cr,uid,ids): res =  for r in self.read(cr,uid,ids['name','create_date']) res.append((r['id'], '%s (%s)' (r['name'],year)) return res
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 6/5/13, 5:31 AM|
|Seen: 1340 times|
|Last updated: 3/16/15, 8:10 AM|