summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/xml/mail.xml
diff options
context:
space:
mode:
authorThibault Delavallée <tde@openerp.com>2015-06-25 13:30:49 +0200
committerThibault Delavallée <tde@openerp.com>2015-07-01 12:52:52 +0200
commit9cd9aaaa174ae1f2a0af12143a34eb4682ea6f59 (patch)
treea7cd689bde502f94131753b92c41666cb7c6709c /addons/mail/static/src/xml/mail.xml
parent0a446f976f11d5145e8035ec2decfcacdf3d306c (diff)
[IMP] mail: new internal-only subtype feature.
Starting from now, subtypes can be internal. This means that only employees (group_user members) can see the messages with this subtype. This feature replaces and enhances the 'log a note = no subtype = internal only' feature. Public and portal users cannot see internal messages. This allows to have subtypes and a follow mechanism that works for employees and is not visible for external people. Its first use will be for Crm Activities, allowing to have custom subtypes visible only for salesman and not send to the customer.
Diffstat (limited to 'addons/mail/static/src/xml/mail.xml')
-rw-r--r--addons/mail/static/src/xml/mail.xml10
1 files changed, 9 insertions, 1 deletions
diff --git a/addons/mail/static/src/xml/mail.xml b/addons/mail/static/src/xml/mail.xml
index 539c587c80e..d5a188f5e40 100644
--- a/addons/mail/static/src/xml/mail.xml
+++ b/addons/mail/static/src/xml/mail.xml
@@ -37,10 +37,18 @@
<div class="o_timeline_msg o_timeline_msg_composer">
<div class="o_timeline_msg_center">
<div class="o_timeline_msg_content">
- <button class="oe_full" title="Open the full mail composer">
+ <button t-if="! widget.is_log" class="oe_full" title="Open the full mail composer">
<i class='fa fa-pencil-square-o'/>
</button>
<t t-call="ThreadListRecipients"/>
+ <t t-if="widget.is_log and widget.options.internal_subtypes.length > 1">
+ <label>Activity</label>
+ <select class="">
+ <t t-foreach="widget.options.internal_subtypes" t-as="subtype">
+ <option t-att-value="subtype['id']"><t t-raw="subtype['name']"/></option>
+ </t>
+ </select>
+ </t>
<textarea class="field_text"></textarea>
</div>
<div class="o_timeline_msg_footer">