[FIX] website_blog: controllers blog expects a date, not a datetime

This commit is contained in:
Denis Ledoux 2014-08-27 18:13:53 +02:00
parent 23df2ec28a
commit 04a56d8f6b
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ class WebsiteBlog(http.Controller):
groups = blog_post_obj.read_group(request.cr, request.uid, [], ['name', 'create_date'],
groupby="create_date", orderby="create_date asc", context=request.context)
for group in groups:
group['date'] = "%s_%s" % (group['__domain'][0][2], group['__domain'][1][2])
group['date'] = "%s_%s" % (group['__domain'][0][2][:10], group['__domain'][1][2][:10])
return groups
@http.route([