I'm trying to make a tag field in my module and whenever I try to show it in the XML view it shows a reference of the tag not the name of the tag it self
this is my code:
PYTHON
class podcast(osv.osv):
_name = 'podcast'
_columns ={
... fields.....

'tag':fields.many2many('podcast.tag','tag_realation','podcast_tag','podcast_name','Podcasts')
}
class tag_name(osv.osv):
_name = 'podcast.tag'
_columns ={
'tag_name':fields.char('tag Name', size=64, required=True),
'tag':fields.many2many('podcast','tag_realation','podcast_name','podcast_tag','Tags')
}
XML FILE (VIEW)
↧