summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorThibault Delavallée <tde@openerp.com>2013-09-23 17:56:05 +0200
committerThibault Delavallée <tde@openerp.com>2013-09-23 17:56:05 +0200
commitec22dee6d1d8d14c4a285a8fd47dbfa1ee1b515b (patch)
tree0f66f407fbcd0fc32d15860918e94423c884084a /addons
parent65a0fcd394f12227754f5da4d4ce5dfb0e48fd00 (diff)
[FIX] website_blog: fixed m2m between blog.post and blog.tag
bzr revid: tde@openerp.com-20130923155605-r2x40550sq71mhtx
Diffstat (limited to 'addons')
-rw-r--r--addons/website_blog/website_blog.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/addons/website_blog/website_blog.py b/addons/website_blog/website_blog.py
index e29a8a74a61..7f35f787be2 100644
--- a/addons/website_blog/website_blog.py
+++ b/addons/website_blog/website_blog.py
@@ -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(