[FIX] crm: expected closing

Backport of commit abea8d3513

opw-771843
This commit is contained in:
Nicolas Martinelli
2017-09-14 14:49:18 +02:00
parent be3b0069fb
commit 4e799fed8e
+1 -1
View File
@@ -1158,7 +1158,7 @@ Update your business card, phone book, social media,... Send an email right now
res['activity']['today'] += 1
if date_action >= date.today() and date_action <= date.today() + timedelta(days=7):
res['activity']['next_7_days'] += 1
if date_action < date.today():
if date_action < date.today() and not opp['date_closed']:
res['activity']['overdue'] += 1
# Won in Opportunities