[FIX] website_forum: second part of the fix introduced at revision fd5516ade8409bcec2...
authorThibault Delavallée <tde@openerp.com>
Tue, 26 Aug 2014 12:12:11 +0000 (14:12 +0200)
committerThibault Delavallée <tde@openerp.com>
Tue, 26 Aug 2014 12:12:11 +0000 (14:12 +0200)
addons/website_forum/controllers/main.py

index e80f731..a3a9b58 100644 (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,