From 6cce8d5a552eee8f36aaa0200e0940e74c428f9a Mon Sep 17 00:00:00 2001 From: Christophe Simonis Date: Mon, 9 Mar 2015 16:07:44 +0100 Subject: [PATCH] [FIX] website_forum: remove duplicated method --- addons/website_forum/models/forum.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/addons/website_forum/models/forum.py b/addons/website_forum/models/forum.py index c6a7203bd37..d7d150fc437 100644 --- a/addons/website_forum/models/forum.py +++ b/addons/website_forum/models/forum.py @@ -323,15 +323,6 @@ class Post(models.Model): or (self.post_type == 'link' and not self.forum_id.allow_link): raise UserError(_('This forum does not allow %s' % self.post_type)) - def name_get(self, cr, uid, ids, context=None): - result = [] - for post in self.browse(cr, uid, ids, context=context): - if post.parent_id and not post.name: - result.append((post.id, '%s (%s)' % (post.parent_id.name, post.id))) - else: - result.append((post.id, '%s' % (post.name))) - return result - def _update_content(self, content, forum_id): forum = self.env['forum.forum'].browse(forum_id) if content and self.env.user.karma < forum.karma_dofollow: