[fix] set json formatting for statusbar

bzr revid: nicolas.vanhoren@openerp.com-20110909143450-i2g2q3uoevkj0j9b
This commit is contained in:
niv-openerp 2011-09-09 16:34:50 +02:00
parent ab6f81825c
commit 8d9440e41c
1 changed files with 1 additions and 1 deletions

View File

@ -2536,7 +2536,7 @@ openerp.web.form.FieldStatus = openerp.web.form.Field.extend({
var content = openerp.web.qweb.render("FieldStatus.content", {widget: this, _:_});
this.$element.html(content);
var colors = JSON.parse(((this.node.attrs || {}).statusbar_colors || "{}").split("'").join('"'));
var colors = JSON.parse((this.node.attrs || {}).statusbar_colors || "{}");
var color = colors[this.selected_value];
if (color) {
var elem = this.$element.find("li.oe-arrow-list-selected span");