[FIX] website_blog: remove uid from context value and use user_id

bzr revid: chm@openerp.com-20130930071022-qijjrr1tfn66tytl
This commit is contained in:
Christophe Matthieu 2013-09-30 09:10:22 +02:00
parent c142cd26ba
commit 5dbd093989
2 changed files with 1 additions and 2 deletions

View File

@ -143,7 +143,6 @@ class website_mail(http.Controller):
'blog_posts': blog_posts,
'pager': pager,
'nav_list': nav,
'uid': request.uid,
'unable_editor': post.get('unable_editor')
}

View File

@ -91,7 +91,7 @@
<h4>Leave a Comment</h4>
<form id="comment" t-attf-action="/blog/#{blog_post.category_id.id}/#{blog_post.id}/post#post"
method="POST">
<img class="img pull-left img-rounded" t-att-src="'/website/image?model=res.users&amp;field=image_small&amp;id='+str(uid)" style="width: 50px; margin-right: 10px;"/>
<img class="img pull-left img-rounded" t-att-src="'/website/image?model=res.partner&amp;field=image_small&amp;id='+str(user_id.partner_id.id)" style="width: 50px; margin-right: 10px;"/>
<div class="pull-left" style="width: 75%%">
<textarea rows="3" class="form-control" placeholder="Write a comment..."></textarea>
<button type="submit" class="btn btn-danger mt8">Post</button>