[IMP]: crm: We should be able to convert a lead to an opportunity when it is pending
bzr revid: rpa@tinyerp.com-20100715134316-ot4y5jrud2j5jc73
This commit is contained in:
parent
d064da04d4
commit
0046c4bfc0
|
@ -126,9 +126,9 @@ class crm_lead2opportunity(osv.osv_memory):
|
|||
if lead.state in ['done', 'cancel']:
|
||||
raise osv.except_osv(_("Warning !"), _("Closed/Cancelled \
|
||||
Leads Could not convert into Opportunity"))
|
||||
if lead.state != 'open':
|
||||
if lead.state not in ('open', 'pending'):
|
||||
raise osv.except_osv(_('Warning !'), _('Lead should be in \
|
||||
\'Open\' state before converting to Opportunity.'))
|
||||
\'Open\' or \'Pending\' state before converting to Opportunity.'))
|
||||
return False
|
||||
|
||||
def default_get(self, cr, uid, fields, context=None):
|
||||
|
@ -289,9 +289,9 @@ class crm_lead2opportunity_partner(osv.osv_memory):
|
|||
if lead.state in ['done', 'cancel']:
|
||||
raise osv.except_osv(_("Warning !"), _("Closed/Cancelled \
|
||||
Leads Could not convert into Opportunity"))
|
||||
if lead.state != 'open':
|
||||
if lead.state not in ('open', 'pending'):
|
||||
raise osv.except_osv(_('Warning !'), _('Lead should be in \
|
||||
\'Open\' state before converting to Opportunity.'))
|
||||
\'Open\' or \'Pending\' state before converting to Opportunity.'))
|
||||
return False
|
||||
|
||||
crm_lead2opportunity_partner()
|
||||
|
|
Loading…
Reference in New Issue