summaryrefslogtreecommitdiff
path: root/addons/event/event_view.xml
diff options
context:
space:
mode:
Diffstat (limited to 'addons/event/event_view.xml')
-rw-r--r--addons/event/event_view.xml10
1 files changed, 4 insertions, 6 deletions
diff --git a/addons/event/event_view.xml b/addons/event/event_view.xml
index 05eb55f067f..18c5c29f2e5 100644
--- a/addons/event/event_view.xml
+++ b/addons/event/event_view.xml
@@ -391,9 +391,8 @@
<field name="message_ids" colspan="4" nolabel="1" mode="tree,form">
<tree string="History">
<field name="display_text" string="History Information"/>
- <field name="history" invisible="1"/>
<button
- string="Reply" attrs="{'invisible': [('history', '!=', True)]}"
+ string="Reply" attrs="{'invisible': [('email_from', '=', False)]}"
name="%(mail.action_email_compose_message_wizard)d"
context="{'mail':'reply', 'message_id':active_id}"
icon="terp-mail-replied" type="action" />
@@ -405,18 +404,17 @@
<field name="email_to" widget="char" size="512"/>
<field name="email_cc" widget="char" size="512"/>
<field name="subject" colspan="4" widget="char" size="512"/>
- <field name="history" invisible="1"/>
</group>
<notebook colspan="4">
<page string="Details">
- <group attrs="{'invisible': [('history', '!=', True)]}">
- <field name="body" colspan="4" nolabel="1" height="250"/>
+ <group attrs="{'invisible': [('email_from', '=', False)]}">
+ <field name="body_text" colspan="4" nolabel="1" height="250"/>
<button colspan="4" string="Reply"
name="%(mail.action_email_compose_message_wizard)d"
context="{'mail':'reply', 'message_id':active_id}"
icon="terp-mail-replied" type="action"/>
</group>
- <group attrs="{'invisible': [('history', '=', True)]}">
+ <group attrs="{'invisible': [('email_from', '!=', False)]}">
<field name="display_text" colspan="4" nolabel="1" height="250"/>
</group>
</page>