[CLEAN] Cleaned the cleaning of the fix.
bzr revid: tde@openerp.com-20130327111910-l7a9s5rk05b8jbme
This commit is contained in:
parent
f307221f04
commit
92597407f8
|
@ -193,9 +193,7 @@ class mail_compose_message(osv.TransientModel):
|
||||||
|
|
||||||
# create subject
|
# create subject
|
||||||
re_prefix = _('Re:')
|
re_prefix = _('Re:')
|
||||||
if message_data.subject:
|
reply_subject = tools.ustr(message_data.subject or message_data.record_name or '')
|
||||||
|
|
||||||
reply_subject = tools.ustr(message_data.subject or tools.ustr(message_data.record_name or '') or '')
|
|
||||||
if not (reply_subject.startswith('Re:') or reply_subject.startswith(re_prefix)) and message_data.subject:
|
if not (reply_subject.startswith('Re:') or reply_subject.startswith(re_prefix)) and message_data.subject:
|
||||||
reply_subject = "%s %s" % (re_prefix, reply_subject)
|
reply_subject = "%s %s" % (re_prefix, reply_subject)
|
||||||
# get partner_ids from original message
|
# get partner_ids from original message
|
||||||
|
|
Loading…
Reference in New Issue