From 80643796172e5b8d4e30b806268c11729934b2c6 Mon Sep 17 00:00:00 2001 From: Christophe Simonis Date: Tue, 5 Jan 2016 18:23:34 +0100 Subject: [PATCH] [FIX] crm: correct lead kanban color --- addons/crm/crm_lead.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/crm/crm_lead.py b/addons/crm/crm_lead.py index 9ef0573f848..ef4d1dd2043 100644 --- a/addons/crm/crm_lead.py +++ b/addons/crm/crm_lead.py @@ -117,9 +117,9 @@ class crm_lead(format_address, osv.osv): """ Very interesting kanban state color. This makes complete sense. Or not. """ result = {} - today = datetime.now() + today = date.today() for lead in self.browse(cr, uid, ids, context=context): - result[lead.id] = 'normal' + result[lead.id] = 'grey' if lead.date_action: lead_date = datetime.strptime(lead.date_action, tools.DEFAULT_SERVER_DATE_FORMAT) if lead_date > today: