summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/xml
diff options
context:
space:
mode:
authorXavierDo <xdo@odoo.com>2018-08-01 14:51:01 +0200
committerXavierDo <xdo@odoo.com>2018-08-10 15:20:37 +0200
commit1de9496f14a42d543ec9805dfc1d0e8df39017d2 (patch)
tree65ae75dd0295eeb2d151a4bb4e4c1457522967c4 /addons/mail/static/src/xml
parent83fc5dc03ce92df9b920386f9215cdc5504c3be1 (diff)
[IMP] mail: add activity view
A simple new view to easily display all activity on a model grouped by res_id and activity_type_id. Some action are possible like sending a mail template for all record having an activity with this activity type and present in the view (depends on the filter). The view use the Kanban activity view on cells. It could be a good idea to rename this widget to something like "DropdownActivityView" (maybe after the freeze) Task: #1870662 PR: #26272
Diffstat (limited to 'addons/mail/static/src/xml')
-rw-r--r--addons/mail/static/src/xml/activity_view.xml18
1 files changed, 18 insertions, 0 deletions
diff --git a/addons/mail/static/src/xml/activity_view.xml b/addons/mail/static/src/xml/activity_view.xml
new file mode 100644
index 00000000000..eacb4cc7ca9
--- /dev/null
+++ b/addons/mail/static/src/xml/activity_view.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<templates xml:space="preserve">
+
+<t t-name="mail.ActivityViewHeaderCell">
+ <th class="o_activity_type_cell" t-att-data-activity-type-id="id">
+ <span><t t-esc="name"/></span>
+ <span t-if="template_list.length > 0" class="dropdown pull-right">
+ <i class="fa fa-ellipsis-v fa-fw" data-toggle="dropdown"/>
+ <div class="dropdown-menu">
+ <div t-foreach="template_list" t-as="template" title="This action will send an email." class="o_template_element o_send_mail_template" t-att-data-template-id="template.id">
+ <i class="fa fa-envelope fa-fw"/> <t t-esc="template.name"/>
+ </div>
+ </div>
+ </span>
+ </th>
+</t>
+
+</templates>