From 36c3a308e684411bea18ddeb1965a7ab0cf9f597 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20Delavall=C3=A9e?= Date: Fri, 24 Aug 2012 12:03:35 +0200 Subject: [PATCH] [TOCHECK] crm_lead: commented statemetns that make no sense abotu changing partner of emails when converting a lead into an oportunity. bzr revid: tde@openerp.com-20120824100335-1kso3qphdh8piq32 --- addons/crm/crm_lead.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/addons/crm/crm_lead.py b/addons/crm/crm_lead.py index 703a389ba93..167a180b53e 100644 --- a/addons/crm/crm_lead.py +++ b/addons/crm/crm_lead.py @@ -597,11 +597,12 @@ class crm_lead(base_stage, osv.osv): self.convert_opportunity_send_note(cr, uid, lead, context=context) #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] - mail_message.write(cr, uid, msg_ids, { - 'partner_id': lead.partner_id.id - }, context=context) + # 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)