[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:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user