[FIX] website_blog: controllers blog expects a date, not a datetime
This commit is contained in:
parent
23df2ec28a
commit
04a56d8f6b
|
@ -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([
|
||||
|
|
Loading…
Reference in New Issue