[FIX] crm: expected closing

The "exp. closing" dashboard button takes into account the won
opportunities. It shouldn't.

Backport of 9d2f48dc7f

opw-751165
opw-744940
This commit is contained in:
Nicolas Martinelli
2017-07-13 08:35:40 +02:00
parent b1b8392591
commit 3e8ba4905c
+1 -1
View File
@@ -1147,7 +1147,7 @@ Update your business card, phone book, social media,... Send an email right now
res['closing']['today'] += 1
if date_deadline >= date.today() and date_deadline <= date.today() + timedelta(days=7):
res['closing']['next_7_days'] += 1
if date_deadline < date.today():
if date_deadline < date.today() and not opp['date_closed']:
res['closing']['overdue'] += 1
# Next activities