[FIX] crm.lead: convert to opportunity must open case too

bzr revid: odo@openerp.com-20120425175225-hjlf834t9gc4hfeh
This commit is contained in:
Olivier Dony
2012-04-25 19:52:25 +02:00
parent 6d88302403
commit 39c52a9d18
+1 -1
View File
@@ -573,8 +573,8 @@ class crm_lead(crm_case, osv.osv):
vals = self._convert_opportunity_data(cr, uid, lead, customer, section_id, context=context)
self.write(cr, uid, [lead.id], vals, context=context)
self._convert_opportunity_notification(cr, uid, lead, context=context)
self.case_open(cr, uid, [lead.id])
#TOCHECK: why need to change partner details in all messages of lead ?
if lead.partner_id:
msg_ids = [ x.id for x in lead.message_ids]