diff options
| author | Mitali Patel <mpa@odoo.com> | 2019-03-15 07:11:16 +0000 |
|---|---|---|
| committer | Xavier-Do <xdo@odoo.com> | 2019-08-07 15:41:05 +0000 |
| commit | a54457e04dc6937ce16a87c97ca30e6fea9568ba (patch) | |
| tree | 0e25f681f15b1d2a0924da158ba1ad55e6f6872c /addons/mail/static/src/xml | |
| parent | 1e7f281070b9494dac0522a9bfc37a32d2453ef9 (diff) | |
[IMP] mail: better exception activity handling in kanban and tree
The purpose of this task is to add a visual indicator on kanban and list
views when there is an exception activity on a record. To do so, two
fields have been added on the activity mixin that determine if the record
has an exception activity and its corresponding icon.
When there's an exception activity, the next activity icon is different
in the kanban and in the list view, the icon is displayed at the end of
the column with no label.
Prefetching all activity_type_ids in compute will allow to lessen
queries (3 query for this compute) and cache may benefit to other
mail.activity.mixin computed field, like activity_state in kanban view
Task 1889379
Diffstat (limited to 'addons/mail/static/src/xml')
| -rw-r--r-- | addons/mail/static/src/xml/web_kanban_activity.xml | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/addons/mail/static/src/xml/web_kanban_activity.xml b/addons/mail/static/src/xml/web_kanban_activity.xml index 4d6c290f11f..2c5574c826c 100644 --- a/addons/mail/static/src/xml/web_kanban_activity.xml +++ b/addons/mail/static/src/xml/web_kanban_activity.xml @@ -4,8 +4,9 @@ <t t-name="mail.KanbanActivity"> <div class="o_kanban_inline_block dropdown o_kanban_selection o_mail_activity"> <a class="dropdown-toggle o-no-caret o_activity_btn" data-toggle="dropdown" role="button"> - <span class="fa fa-clock-o fa-lg fa-fw" t-att-title="widget.selection[widget.activityState]" role="img" t-att-aria-label="widget.selection[widget.activity_state]"/> - </a> + <!-- span classes are generated dynamically (see _render) --> + <span t-att-title="widget.selection[widget.activityState]" role="img" t-att-aria-label="widget.selection[widget.activity_state]"/> + </a> <div class="dropdown-menu o_activity" role="menu"/> </div> </t> |
