[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
This commit is contained in:
Antonin Bourguignon
2012-11-26 19:09:20 +01:00
parent 1d79fa3569
commit 850668d2ff
+1 -1
View File
@@ -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