[IMP] mail_message: added reply_to to the form view of mail.message

bzr revid: tde@openerp.com-20130606152538-4u3s1k4vvkotxz6c
This commit is contained in:
Thibault Delavallée 2013-06-06 17:25:38 +02:00
parent 1ef65f1577
commit 30a7720452
2 changed files with 4 additions and 2 deletions

View File

@ -96,7 +96,8 @@ class mail_mail(osv.Model):
email_from = values.get('email_from')
if values.get('mail_message_id') and (not model or not res_id):
message = self.pool.get('mail.message').browse(cr, uid, values.get('mail_message_id'), context=context)
email_reply_to = tools.email_split(message.reply_to)
if message.reply_to:
email_reply_to = tools.email_split(message.reply_to)[0]
if not model:
model = message.model
if not res_id:

View File

@ -30,9 +30,9 @@
<field name="subject"/>
<field name="author_id"/>
<field name="email_from"/>
<field name="reply_to"/>
<field name="date"/>
<field name="type"/>
<field name="subtype_id"/>
</group>
<group>
<field name="model"/>
@ -40,6 +40,7 @@
<field name="parent_id"/>
<field name="partner_ids" widget="many2many_tags"/>
<field name="notified_partner_ids" widget="many2many_tags"/>
<field name="subtype_id"/>
</group>
</group>
<field name="body"/>