Skip to content
Snippets Groups Projects
Commit abea8d35 authored by Nicolas Martinelli's avatar Nicolas Martinelli
Browse files

[FIX] crm: expected closing

Complement of commit 9d2f48dc

opw-724375
parent 23f0fb61
Branches
Tags
No related merge requests found
......@@ -936,7 +936,7 @@ class Lead(FormatAddress, models.Model):
result['activity']['today'] += 1
if date.today() <= date_action <= date.today() + timedelta(days=7):
result['activity']['next_7_days'] += 1
if date_action < date.today():
if date_action < date.today() and not opp.date_closed:
result['activity']['overdue'] += 1
# Won in Opportunities
if opp.date_closed:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment