[FIX] crm: match filter result with count

At 9d2f48dc and abea8d35 the `not opp.date_closed` condtion was added when
counting the number of overdue opportunites.
The result filter was still considering the closed opportunities.

opw-774421
This commit is contained in:
Martin Trigaux
2017-10-17 16:23:07 +02:00
parent fbdda5437a
commit 4ebb5efac4
+2 -1
View File
@@ -340,7 +340,8 @@
('activity_ids.date_deadline', '<=', (context_today()+datetime.timedelta(days=7)).strftime('%Y-%m-%d'))
]"/>
<filter string="Overdue Activities" name="activities_overdue"
domain="[('activity_ids.date_deadline', '&lt;', context_today().strftime('%Y-%m-%d'))]"
domain="[('activity_ids.date_deadline', '&lt;', context_today().strftime('%Y-%m-%d')),
('date_closed', '=', False)]"
help="Show all records which has next action date is before today"/>
<group expand="0" string="Group By">
<filter string="Salesperson" name="groupby_salesperson" domain="[]" context="{'group_by':'user_id'}"/>