[FIX] website_blog: fixed m2m between blog.post and blog.tag

bzr revid: tde@openerp.com-20130923155605-r2x40550sq71mhtx
This commit is contained in:
Thibault Delavallée
2013-09-23 17:56:05 +02:00
parent 65a0fcd394
commit ec22dee6d1
+2 -6
View File
@@ -53,9 +53,7 @@ class BlogTag(osv.Model):
_columns = {
'name': fields.char('Name', required=True),
'blog_post_ids': fields.many2many(
'blog.tag', 'blog_tag_rel',
'tag_id', 'blog_post_id',
'Posts',
'blog.post', string='Posts',
),
}
@@ -93,9 +91,7 @@ class BlogPost(osv.Model):
required=True, ondelete='cascade',
),
'tag_ids': fields.many2many(
'blog.tag', 'blog_tag_rel',
'blog_id', 'tag_id',
'Tags',
'blog.tag', string='Tags',
),
'content': fields.html('Content'),
'shortened_content': fields.function(