[FIX] crm: add filter for overdue opportunities
With commit[1], we introduced a feature that from the sales team, we can see the overdue opportunities for a particual teams. However, the filter that we use for related action which is supposed to show overdue opportunities is not not added, and the filtration is not working as expected, showing us all the opportunites for a team. This commit fixes the issue by adding the invisible filter with proper domain set within opportunities' search view and thus enables us to filter overdue opportunites. commit[1] - https://github.com/odoo/odoo/commit/1da63f0ab0fb4212bee46f960c6bbe8ca9251cac TaskID : 2323612 closes odoo/odoo#65258 X-original-commit: 68577d32c7fe0cb18ba4fb788cee65ec8b54b65b Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
This commit is contained in:
committed by
Dharmraj Jhala
parent
56ed860085
commit
dd3b58e2f3
@@ -819,6 +819,7 @@
|
||||
<filter string="Won" name="won" domain="['&', ('active', '=', True), ('stage_id.is_won', '=', True)]"/>
|
||||
<filter string="Lost" name="lost" domain="['&', ('active', '=', False), ('probability', '=', 0)]"/>
|
||||
<separator/>
|
||||
<filter invisible="1" string="Overdue Opportunities" name="overdue_opp" domain="[('date_deadline', '<', context_today().strftime('%Y-%m-%d'))]"/>
|
||||
<filter invisible="1" string="Late Activities" name="activities_overdue"
|
||||
domain="[('activity_ids.date_deadline', '<', context_today().strftime('%Y-%m-%d'))]"
|
||||
help="Show all opportunities for which the next action date is before today"/>
|
||||
|
||||
Reference in New Issue
Block a user