[FIX] crm: expected closing

Complement of commit 9d2f48dc7f

opw-724375
This commit is contained in:
Nicolas Martinelli
2017-09-04 10:13:12 +02:00
parent 23f0fb6168
commit abea8d3513
+1 -1
View File
@@ -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: