[imp] cosmetic change

bzr revid: nicolas.vanhoren@openerp.com-20110908163612-nzdxfk8co55b7hm0
This commit is contained in:
niv-openerp
2011-09-08 18:36:12 +02:00
parent 7987d3a2f6
commit 4970d55397
+2
View File
@@ -2494,6 +2494,7 @@ openerp.web.form.FieldStatus = openerp.web.form.Field.extend({
var self = this;
var shown = _.map(((this.node.attrs || {}).statusbar_visible || "").split(","),
function(x) { return x.trim(); });
if (shown.length == 0) {
this.to_show = this.field.selection;
} else {
@@ -2501,6 +2502,7 @@ openerp.web.form.FieldStatus = openerp.web.form.Field.extend({
return _.indexOf(shown, x[0]) !== -1 || x[0] === self.selected_value;
});
}
var content = openerp.web.qweb.render("FieldStatus.content", {widget: this, _:_});
this.$element.html(content);
}