From 850668d2ff22b6a7fa4935d67f7351ca59c6affa Mon Sep 17 00:00:00 2001 From: Antonin Bourguignon Date: Mon, 26 Nov 2012 19:09:20 +0100 Subject: [PATCH] [FIX] forgot to update this test: properly test that at the first opp met, a type 'opportunity' is returned bzr revid: abo@openerp.com-20121126180920-s83ik6atj55yqhx1 --- addons/crm/crm_lead.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/crm/crm_lead.py b/addons/crm/crm_lead.py index d2025d10085..bf54f412d12 100644 --- a/addons/crm/crm_lead.py +++ b/addons/crm/crm_lead.py @@ -448,7 +448,7 @@ class crm_lead(base_stage, format_address, osv.osv): """ type = 'lead' for opp in opportunities: - if ('opportunity' in [opp.type, type]): + if (opp.type == 'opportunity'): return 'opportunity' return type