From 93e7a6283f8f3f76828d6f78a34d1e89b0877831 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20Delavall=C3=A9e?= Date: Tue, 26 Aug 2014 14:12:11 +0200 Subject: [PATCH] [FIX] website_forum: second part of the fix introduced at revision fd5516ade8409bcec2eb60ea9337769a6c3307f6. Wrong commit was added to 8.0, missing code cleaning. --- addons/website_forum/controllers/main.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/addons/website_forum/controllers/main.py b/addons/website_forum/controllers/main.py index e80f7316d04..a3a9b583d2d 100644 --- a/addons/website_forum/controllers/main.py +++ b/addons/website_forum/controllers/main.py @@ -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,