From 06e1220bbfc54b5171678ac61fc61fd62e53b17a Mon Sep 17 00:00:00 2001 From: Jeremy Kersten <jke@odoo.com> Date: Mon, 24 Jun 2019 11:57:23 +0000 Subject: [PATCH] [FIX] website_slides: display slide total time in minutes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit And hide if no time set task-fpreq closes odoo/odoo#34346 Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com> --- .../website_slides/views/website_slides_templates_homepage.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/website_slides/views/website_slides_templates_homepage.xml b/addons/website_slides/views/website_slides_templates_homepage.xml index 7b161f446a21..d163f3fbeb69 100644 --- a/addons/website_slides/views/website_slides_templates_homepage.xml +++ b/addons/website_slides/views/website_slides_templates_homepage.xml @@ -303,7 +303,7 @@ </div> <div class="card-footer bg-white text-600 px-3"> <div class="d-flex justify-content-between align-items-center"> - <small class="font-weight-bold" t-field="channel.total_time" t-options='{"widget": "float_time"}'/> + <small t-if="channel.total_time" class="font-weight-bold"><t t-esc="channel.total_time * 60" t-options="{"widget": "integer"}"/> min</small> <div class="d-flex flex-grow-1 justify-content-end"> <t t-if="channel.is_member and channel.completed"> <span class="badge badge-pill badge-success pull-right py-1 px-2"><i class="fa fa-check"/> Completed</span> -- GitLab