[FIX] crm: kanban color

Commit 4b2091e8c9 introduces a change in the state color of the kanban
view. However, that doesn't match the description.

opw-693540
This commit is contained in:
Nicolas Martinelli
2016-11-14 09:14:27 +01:00
parent 7a800427df
commit c544aa298f
+2 -2
View File
@@ -167,13 +167,13 @@ class Lead(FormatAddress, models.Model):
def _compute_kanban_state(self):
today = date.today()
for lead in self:
kanban_state = 'red'
kanban_state = 'grey'
if lead.date_action:
lead_date = fields.Date.from_string(lead.date_action)
if lead_date >= today:
kanban_state = 'green'
else:
kanban_state = 'grey'
kanban_state = 'red'
lead.kanban_state = kanban_state
@api.depends('date_open')