From: Thibault Delavallée Date: Tue, 26 Aug 2014 12:12:11 +0000 (+0200) Subject: [FIX] website_forum: second part of the fix introduced at revision fd5516ade8409bcec2... X-Git-Tag: 8.0.0~250 X-Git-Url: http://git.inspyration.org/?a=commitdiff_plain;h=93e7a6283f8f3f76828d6f78a34d1e89b0877831;p=odoo%2Fodoo.git [FIX] website_forum: second part of the fix introduced at revision fd5516ade8409bcec2eb60ea9337769a6c3307f6. Wrong commit was added to 8.0, missing code cleaning. --- diff --git a/addons/website_forum/controllers/main.py b/addons/website_forum/controllers/main.py index e80f731..a3a9b58 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,