[IMP] CRM: when processing incoming emails to create a lead, do not add the email content as description.
bzr revid: tde@openerp.com-20130307153216-hab124jnmcmj3dm8
This commit is contained in:
parent
dde50031e7
commit
864ff38236
|
@ -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),
|
||||
|
|
Loading…
Reference in New Issue