[FIX] website_forum: second part of the fix introduced at revision fd5516ade8. Wrong commit was added to 8.0, missing code cleaning.

This commit is contained in:
Thibault Delavallée
2014-08-26 14:12:11 +02:00
parent fd5516ade8
commit 93e7a6283f
+4 -3
View File
@@ -496,10 +496,11 @@ class WebsiteForum(http.Controller):
posts_ids = Post.browse(cr, uid, posts.keys(), context=context)
posts = dict(map(lambda x: (x.id, (x.parent_id or x, x.parent_id and x or False)), posts_ids))
if user.id is uid:
post['my_profile'] = 'True'
# TDE CLEANME MASTER: couldn't it be rewritten using a 'menu' key instead of one key for each menu ?
if user.id == uid:
post['my_profile'] = True
else:
post['users'] = 'True'
post['users'] = True
values.update({
'uid': uid,