Hi, I created a res.label model:
class res_label(osv.osv):
_name = 'res.label'
_columns = {
'label': fields.char('Label'), }
and added to res.partner a label_id field:
class res_partner(osv.Model):
_inherit = "res.partner"
_columns = {
'label_id' : fields.many2one('res.label', 'Label')}
But when I creat a label in res.partner it displays 'res.label,1' instead of "My Label"
anyone knows what I should do to get it works?
See this: https://learnopenerp.blogspot.com/2016/10/how-to-show-two-different-values-in.html