[IMP] CRM: when processing incoming emails to create a lead, do not add the email...
authorThibault Delavallée <tde@openerp.com>
Thu, 7 Mar 2013 15:32:16 +0000 (16:32 +0100)
committerThibault Delavallée <tde@openerp.com>
Thu, 7 Mar 2013 15:32:16 +0000 (16:32 +0100)
bzr revid: tde@openerp.com-20130307153216-hab124jnmcmj3dm8

addons/crm/crm_lead.py

index e5d07b2..e8bba67 100644 (file)
@@ -975,12 +975,10 @@ class crm_lead(base_stage, format_address, osv.osv):
             through message_process.
             This override updates the document according to the email.
         """
-        if custom_values is None: custom_values = {}
-
-        desc = html2plaintext(msg.get('body')) if msg.get('body') else ''
+        if custom_values is None:
+            custom_values = {}
         defaults = {
             'name':  msg.get('subject') or _("No Subject"),
-            'description': desc,
             'email_from': msg.get('from'),
             'email_cc': msg.get('cc'),
             'partner_id': msg.get('author_id', False),