[CLEAN] Cleaned the cleaning of the fix.

bzr revid: tde@openerp.com-20130327111910-l7a9s5rk05b8jbme
This commit is contained in:
Thibault Delavallée 2013-03-27 12:19:10 +01:00
parent f307221f04
commit 92597407f8
1 changed files with 1 additions and 3 deletions

View File

@ -193,9 +193,7 @@ class mail_compose_message(osv.TransientModel):
# create subject
re_prefix = _('Re:')
if message_data.subject:
reply_subject = tools.ustr(message_data.subject or tools.ustr(message_data.record_name or '') or '')
reply_subject = tools.ustr(message_data.subject or message_data.record_name or '')
if not (reply_subject.startswith('Re:') or reply_subject.startswith(re_prefix)) and message_data.subject:
reply_subject = "%s %s" % (re_prefix, reply_subject)
# get partner_ids from original message