projects
/
odoo
/
odoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fd5516a
)
[FIX] website_forum: second part of the fix introduced at revision fd5516ade8409bcec2...
author
Thibault Delavallée
<tde@openerp.com>
Tue, 26 Aug 2014 12:12:11 +0000
(14:12 +0200)
committer
Thibault Delavallée
<tde@openerp.com>
Tue, 26 Aug 2014 12:12:11 +0000
(14:12 +0200)
addons/website_forum/controllers/main.py
patch
|
blob
|
history
diff --git
a/addons/website_forum/controllers/main.py
b/addons/website_forum/controllers/main.py
index
e80f731
..
a3a9b58
100644
(file)
--- 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,