Skip to content

Commit

Permalink
[IMP] Use the website_publication_date in place of create_date in blo…
Browse files Browse the repository at this point in the history
…g_post_short
  • Loading branch information
lmignon committed Jan 19, 2015
1 parent 39d8944 commit b7690c2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
3 changes: 2 additions & 1 deletion website_blog_mgmt/__openerp__.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
],
'data': [
'data/website_blog_mgmt_data.xml',
'views/website_blog_views.xml'
'views/website_blog_views.xml',
'views/website_blog_templates.xml',
],
'installable': True,
'auto_install': False,
Expand Down
10 changes: 10 additions & 0 deletions website_blog_mgmt/views/website_blog_templates.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0"?>
<openerp>
<data>
<template id="blog_post_short" inherit_id="website_blog.blog_post_short">
<xpath expr="//span[@t-field='blog_post.create_date']" position="replace">
<span t-field="blog_post.website_publication_date" t-field-options='{"format": "MMMM yyyy"}' />
</xpath>
</template>
</data>
</openerp>

0 comments on commit b7690c2

Please sign in to comment.