[FIX] crm: match filter result with count
At9d2f48dcandabea8d35the `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:
@@ -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', '<', context_today().strftime('%Y-%m-%d'))]"
|
||||
domain="[('activity_ids.date_deadline', '<', 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'}"/>
|
||||
|
||||
Reference in New Issue
Block a user