[FIX] crm: correct lead kanban color

This commit is contained in:
Christophe Simonis
2016-01-05 18:23:34 +01:00
parent def81c5d48
commit 8064379617
+2 -2
View File
@@ -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: