summaryrefslogtreecommitdiff
path: root/addons/mail/wizard/mail_compose_message_view.xml
diff options
context:
space:
mode:
authorThibault Delavallée <tde@openerp.com>2014-03-17 13:24:09 +0100
committerThibault Delavallée <tde@openerp.com>2014-03-17 13:24:09 +0100
commitd5a8905941f6af1245721d985e2a01f76d170a62 (patch)
tree990dcd8bfd384e4a7a122d10e4778342f11b9da8 /addons/mail/wizard/mail_compose_message_view.xml
parent48deceb6c6e19be497cc623828c6eff361d6c081 (diff)
[IMP] mail_compose_message: added is_log boolean field for internal notes; + removed context hack that
did the same thing. Fixed composer form view: internal note, only subject + body is displayed. bzr revid: tde@openerp.com-20140317122409-5fd5d5uwc35oq0hb
Diffstat (limited to 'addons/mail/wizard/mail_compose_message_view.xml')
-rw-r--r--addons/mail/wizard/mail_compose_message_view.xml12
1 files changed, 4 insertions, 8 deletions
diff --git a/addons/mail/wizard/mail_compose_message_view.xml b/addons/mail/wizard/mail_compose_message_view.xml
index 4c539e426d9..a2f723db99d 100644
--- a/addons/mail/wizard/mail_compose_message_view.xml
+++ b/addons/mail/wizard/mail_compose_message_view.xml
@@ -11,6 +11,7 @@
<field name="composition_mode" invisible="1"/>
<field name="model" invisible="1"/>
<field name="res_id" invisible="1"/>
+ <field name="is_log" invisible="1"/>
<field name="parent_id" invisible="1"/>
<field name="mail_server_id" invisible="1"/>
<!-- Various warnings -->
@@ -29,8 +30,8 @@
attrs="{'invisible':[('composition_mode', '!=', 'mass_mail')]}"/>
<field name="subject" placeholder="Subject..." required="True"/>
<!-- recipients -->
- <label for="partner_ids" string="Recipients" groups="base.group_user"/>
- <div groups="base.group_user">
+ <label for="partner_ids" string="Recipients" attrs="{'invisible': [('is_log', '=', True)]}" groups="base.group_user"/>
+ <div groups="base.group_user" attrs="{'invisible': [('is_log', '=', True)]}">
<span attrs="{'invisible': [('composition_mode', '!=', 'mass_mail')]}">
<strong>Email mass mailing</strong> on
<span attrs="{'invisible': [('use_active_domain', '=', True)]}">the selected records</span>
@@ -48,12 +49,7 @@
<field name="notify"
attrs="{'invisible':['|', ('composition_mode', '!=', 'mass_post')]}"/>
<!-- mass mailing -->
- <label for="same_thread"/>
- <div>
- <field name="same_thread"
- attrs="{'invisible':[('composition_mode', '!=', 'mass_mail')]}"/>
- (a copy of the message will be added in the Chatter of each document)
- </div>
+ <field name="same_thread" attrs="{'invisible':[('composition_mode', '!=', 'mass_mail')]}"/>
<field name="reply_to" placeholder="Email address to redirect replies..."
attrs="{'invisible':['|', ('same_thread', '=', True), ('composition_mode', '!=', 'mass_mail')],
'required':[('same_thread', '!=', True), ('composition_mode', '=', 'mass_mail')]}"/>