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: