Permalink
Browse files

[IMP] web: Don't add help message for stage description and miscellan…

…eous improvement
  • Loading branch information...
vas-odoo authored and msh-odoo committed Aug 22, 2018
1 parent f7bc2b0 commit ef419e72df9f331b0d406bfd0ec20487ea73c962
@@ -190,6 +190,8 @@
<field name="date_invoice"/>
<field name="state"/>
<field name="currency_id"/>
<field name="activity_state"/>
<progressbar field="activity_state" colors='{"planned": "success", "today": "warning", "overdue": "danger"}'/>
<templates>
<t t-name="kanban-box">
<div t-attf-class="oe_kanban_card oe_kanban_global_click">
@@ -134,6 +134,7 @@
<field name="total_amount"/>
<field name="date"/>
<field name="state"/>
<field name="activity_state"/>
<progressbar field="activity_state" colors='{"planned": "success", "today": "warning", "overdue": "danger"}'/>
<templates>
<t t-name="kanban-box">
@@ -124,7 +124,7 @@
<field name="message_needaction_counter"/>
<field name="activity_ids" />
<field name="activity_state" />
<progressbar field="activity_state" colors='{"planned": "success", "today": "warning", "overdue": "danger"}'/>
<progressbar field="kanban_state" colors='{"done": "success", "blocked": "danger"}'/>
<templates>
<t t-name="kanban-tooltip">
<ul class="oe_kanban_tooltip">
@@ -525,7 +525,7 @@
<kanban default_group_by="stage_id" class="o_kanban_small_column o_kanban_project_tasks" on_create="quick_create" quick_create_view="project.quick_create_task_form" examples="project">
<field name="color"/>
<field name="priority"/>
<field name="stage_id" options='{"group_by_tooltip": {"description": "Stage Description", "legend_priority": "Use of stars"}}'/>
<field name="stage_id" options='{"group_by_tooltip": {"description": "", "legend_priority": "Use of stars"}}'/>
<field name="user_id"/>
<field name="user_email"/>
<field name="description"/>
@@ -79,9 +79,11 @@ var KanbanColumn = Widget.extend({
}
if (options.group_by_tooltip) {
this.tooltipInfo = _.map(options.group_by_tooltip, function (help, field) {
return (data.tooltipData && data.tooltipData[field] && "<div>" + help + "<br>" + data.tooltipData[field] + "</div>") || '';
}).join('');
this.tooltipInfo = _.compact(_.map(options.group_by_tooltip, function (help, field) {
help = help ? help + "</br>" : '';
return (data.tooltipData && data.tooltipData[field] && "<div>" + help + data.tooltipData[field] + "</div>") || '';
}));
this.tooltipInfo = this.tooltipInfo.join("<div class='dropdown-divider' role='separator' />");
}
},
/**
@@ -14,7 +14,7 @@
<field name="website_url"/>
<field name="activity_ids"/>
<field name="activity_state"/>
<progressbar field="activity_state" colors='{"planned": "success", "today": "warning", "overdue": "danger"}'/>
<progressbar field="kanban_state" colors='{"done": "success", "blocked": "danger"}'/>
<t t-name="kanban-box">
<div t-attf-class="oe_kanban_color_#{kanban_getcolor(record.color.raw_value)} oe_kanban_card oe_kanban_global_click">
<div class="o_dropdown_kanban dropdown" groups="base.group_user">

0 comments on commit ef419e7

Please sign in to comment.