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