From cd1eaabe1124126354bdf9e964b0a7964a48cfbf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9ry=20Debongnie?= Date: Thu, 20 Nov 2014 11:25:49 +0100 Subject: [PATCH] [FIX] fix wrong filter in opportunity view (crm) There was two problems: * it was filtering on the probability of the opportunity, not on the probability of the stage * the filters were not prefixed with '&', which means that they gave weird results when combined in the searchview (in a filter group, filters are combined with '|', but it breaks when the filters are defined by an implicit '&') --- addons/crm/crm_lead_view.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/addons/crm/crm_lead_view.xml b/addons/crm/crm_lead_view.xml index 07c9f05ba29..e294d768054 100644 --- a/addons/crm/crm_lead_view.xml +++ b/addons/crm/crm_lead_view.xml @@ -548,11 +548,11 @@ + domain="['&', ('stage_id.probability', '=', 0), ('stage_id.sequence', '<=', 1)]"/> + domain="['&', ('stage_id.probability', '=', 100), ('stage_id.fold', '=', True)]"/> + domain="['&', ('stage_id.probability', '=', 0), ('stage_id.fold', '=', True)]"/>