summaryrefslogtreecommitdiff
path: root/addons/mail/wizard/mail_compose_message.py
diff options
context:
space:
mode:
authorChristophe Matthieu <chm@openerp.com>2012-10-25 11:59:23 +0200
committerChristophe Matthieu <chm@openerp.com>2012-10-25 11:59:23 +0200
commit31965cf97a090a8d47a893e4f6c53fb2ea96e410 (patch)
tree6d3e57f4917d5d5db23ecde53eb0eec2e7217d79 /addons/mail/wizard/mail_compose_message.py
parenta10c6c4dfdab8d7a8a1f722333d4a9c9b654f0c6 (diff)
[IMP] mail: insert message post, and no quote for reply
bzr revid: chm@openerp.com-20121025095923-7urqi5he10q3z1i6
Diffstat (limited to 'addons/mail/wizard/mail_compose_message.py')
-rw-r--r--addons/mail/wizard/mail_compose_message.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/addons/mail/wizard/mail_compose_message.py b/addons/mail/wizard/mail_compose_message.py
index b68aae14521..b93f6eea7a9 100644
--- a/addons/mail/wizard/mail_compose_message.py
+++ b/addons/mail/wizard/mail_compose_message.py
@@ -157,11 +157,7 @@ class mail_compose_message(osv.TransientModel):
if not (reply_subject.startswith('Re:') or reply_subject.startswith(re_prefix)) and message_data.subject:
reply_subject = "%s %s" % (re_prefix, reply_subject)
# create the reply in the body
- reply_body = _('<div>On %(date)s, %(sender_name)s wrote:<blockquote>%(body)s</blockquote></div>') % {
- 'date': message_data.date if message_data.date else '',
- 'sender_name': message_data.author_id.name,
- 'body': message_data.body,
- }
+ reply_body = (context and context.get('default_body') or '')
# get partner_ids from original message
partner_ids = [partner.id for partner in message_data.partner_ids] if message_data.partner_ids else []