From c973288701bb5b79136ab828aec1bf2352b0e4ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20Delavall=C3=A9e?= Date: Fri, 31 Aug 2012 15:28:03 +0200 Subject: [PATCH] [CLEAN] crm: convert_opportunity: removed dumb code about setting partner of messages when converting a lead into opportunity. bzr revid: tde@openerp.com-20120831132803-wahvfkmg3typl90a --- addons/crm/crm_lead.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/addons/crm/crm_lead.py b/addons/crm/crm_lead.py index bd321775078..8117ed22c6f 100644 --- a/addons/crm/crm_lead.py +++ b/addons/crm/crm_lead.py @@ -592,18 +592,9 @@ class crm_lead(base_stage, osv.osv): for lead in self.browse(cr, uid, ids, context=context): if lead.state in ('done', 'cancel'): continue - 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_send_note(cr, uid, lead, context=context) - #TOCHECK: why need to change partner details in all messages of lead ? - # TDE FIXME: I propose to delete this, makes no sense to update partner of an already-send email ... - # if lead.partner_id: - # msg_ids = [x.id for x in lead.message_ids] - # mail_message.write(cr, uid, msg_ids, { - # 'partner_id': lead.partner_id.id - # }, context=context) if user_ids or section_id: self.allocate_salesman(cr, uid, ids, user_ids, section_id, context=context)