[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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user