[CLEAN] web_kanban_sparkline: removed tootip_suffix_field, not used and not necessary

bzr revid: tde@openerp.com-20131205151355-p2vtq5s1etv145my
This commit is contained in:
Thibault Delavallée 2013-12-05 16:13:55 +01:00
parent bd45d6b47b
commit 93ce6e7ab5
1 changed files with 1 additions and 5 deletions

View File

@ -14,10 +14,6 @@ instance.web_kanban.SparklineBarWidget = instance.web_kanban.AbstractField.exten
var value = _.pluck(self.field.value, 'value');
var tooltips = _.pluck(self.field.value, 'tooltip');
var suffix = self.options.tooltip_suffix || "";
if (self.options.tooltip_suffix_field) {
suffix = self.getParent().record[self.options.tooltip_suffix_field].raw_value;
}
var tooltipformat = _.str.sprintf("{{offset:offset}}: {{value}} %s", suffix);
var sparkline_options = _.extend({
type: 'bar',
barWidth: 5,
@ -25,7 +21,7 @@ instance.web_kanban.SparklineBarWidget = instance.web_kanban.AbstractField.exten
barWidth: 4,
barSpacing: 1,
barColor: '#96d854',
tooltipFormat: tooltipformat,
tooltipFormat: '{{offset:offset}} {{value}} ' + suffix,
chartRangeMin: 0,
tooltipValueLookups: {
'offset': tooltips