diff options
| author | Christophe Matthieu <chm@openerp.com> | 2012-10-25 15:48:19 +0200 |
|---|---|---|
| committer | Christophe Matthieu <chm@openerp.com> | 2012-10-25 15:48:19 +0200 |
| commit | 2a50ee0fde694ee40239c9bfbb31fa4ad077c3fc (patch) | |
| tree | 7c50a14484368ceff0f76d2fa60dcc4225e6e057 | |
| parent | 31965cf97a090a8d47a893e4f6c53fb2ea96e410 (diff) | |
[IMP] mail: Re reply
bzr revid: chm@openerp.com-20121025134819-3iwgsqziivkz8d0z
| -rw-r--r-- | addons/mail/mail_thread.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/addons/mail/mail_thread.py b/addons/mail/mail_thread.py index 8269049f917..685f9781cc9 100644 --- a/addons/mail/mail_thread.py +++ b/addons/mail/mail_thread.py @@ -700,7 +700,8 @@ class mail_thread(osv.AbstractModel): if not subject and parent_id: parent = mail_message.read(cr, uid, parent_id, ['subject'], context=context) - subject = 'Re: ' + parent['subject'] + if not parent['subject'].startswith('Re:') + subject = 'Re: ' + parent['subject'] new_message_id = self.message_post(cr, uid, thread_id=thread_id, body=body, subject=subject, type=type, subtype=subtype, parent_id=parent_id, context=context) |
