[FIX] mail: fixed reply button in mail_mail form view, should reply

to a mail.message, not a mail.mail.

lp bug: https://launchpad.net/bugs/1212190 fixed

bzr revid: tde@openerp.com-20131125155857-m04233fbyan7mglt
This commit is contained in:
Thibault Delavallée 2013-11-25 16:58:57 +01:00
parent 6bfcee2cb7
commit 1284c5c0d4
1 changed files with 2 additions and 1 deletions

View File

@ -7,12 +7,13 @@
<field name="arch" type="xml">
<form string="Email message" version="7.0">
<sheet>
<field name="mail_message_id" required="0" invisible="1"/>
<label for="subject" class="oe_edit_only"/>
<h2><field name="subject"/></h2>
<div>
by <field name="author_id" class="oe_inline" string="User"/> on <field name="date" class="oe_inline"/>
<button name="%(action_email_compose_message_wizard)d" string="Reply" type="action" icon="terp-mail-replied"
context="{'default_composition_mode':'reply', 'default_parent_id': active_id}" states='received,sent,exception,cancel'/>
context="{'default_composition_mode':'reply', 'default_parent_id': mail_message_id}" states='received,sent,exception,cancel'/>
</div>
<notebook colspan="4">
<page string="Message Details">