[IMP] kanban_gauge: allow to set levelcolors in widget options instead of taking the default ones

bzr revid: qdp-launchpad@openerp.com-20131227164911-tk7og4pf37jmvj0c
This commit is contained in:
Quentin (OpenERP) 2013-12-27 17:49:11 +01:00
parent 1e3ebc0285
commit f3737b122c
1 changed files with 2 additions and 1 deletions

View File

@ -9,6 +9,7 @@ var _t = instance.web._t,
instance.web_kanban.GaugeWidget = instance.web_kanban.AbstractField.extend({
className: "oe_gauge",
start: function() {
var self = this;
var parent = this.getParent();
@ -41,7 +42,7 @@ instance.web_kanban.GaugeWidget = instance.web_kanban.AbstractField.extend({
valueFontColor: '#333333',
labelFontColor: '#000',
label: label,
levelColors: [
levelColors: self.options.levelcolors || [
"#ff0000",
"#f9c802",
"#a9d70b"