Skip to content
Snippets Groups Projects
Commit 170bc320 authored by Stéphane Wirtel's avatar Stéphane Wirtel
Browse files

[FIX] crm: Show the Name of the User in the 'from' field in the send email wizard

bzr revid: stephane@openerp.com-20100427151505-4xtc16w4zkz4wszi
parent 45800149
No related branches found
No related tags found
No related merge requests found
......@@ -162,7 +162,9 @@ class crm_send_new_email(osv.osv_memory):
if 'email_from' in fields:
res.update({'email_from': (case.section_id and case.section_id.reply_to) or \
(case.user_id and case.user_id.address_id and \
case.user_id.address_id.email) or tools.config.get('email_from',False)})
case.user_id.address_id.email and \
"%s <%s>" % (case.user_id.name, case.user_id.address_id.email)) or \
tools.config.get('email_from',False)})
if 'subject' in fields:
res.update({'subject': '[%s] %s' %(str(case.id), case.name or '')})
if 'email_cc' in fields:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment