From 9857b96b9774bfbcb4cab45c7bfc96461c4ccad7 Mon Sep 17 00:00:00 2001 From: "Nasreddin (bon)" Date: Tue, 16 Mar 2021 13:04:10 +0000 Subject: [PATCH] [FIX] website_blog: display post_date on latests blogs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Issue - Install 'Blogs' module - Create a blog post - Set published_date to 01/01/1997 - Go to website - Edit any page and add a 'Blog Posts' Block - Set 'Layout' to 'Cards' (or 'Horizontal') - Save In snippet cards, the blog post date is not the published date. Cause Displaying update date ('write_date' field) instead of the published date ('post_date' field). Solution Replace 'write_date' by 'post_date'. opw-2443104 closes odoo/odoo#67985 X-original-commit: 681e709b239c2456c71d1c16bb40de055dfb927c Signed-off-by: Jérémy Kersten (jke) --- addons/website_blog/views/snippets/s_latest_posts.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/website_blog/views/snippets/s_latest_posts.xml b/addons/website_blog/views/snippets/s_latest_posts.xml index c5f267a0b4a..01628c02643 100644 --- a/addons/website_blog/views/snippets/s_latest_posts.xml +++ b/addons/website_blog/views/snippets/s_latest_posts.xml @@ -61,7 +61,7 @@

-
+
@@ -85,7 +85,7 @@