[fix] problem with statusbar, does not use all states when no visible state defined

bzr revid: nicolas.vanhoren@openerp.com-20110913093409-u2qaby393y9pzb02
This commit is contained in:
niv-openerp
2011-09-13 11:34:09 +02:00
parent 30cc28efbb
commit 10a8ef00cd
+1
View File
@@ -2524,6 +2524,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(); });
shown = _.select(shown, function(x) { return x.length > 0; });
if (shown.length == 0) {
this.to_show = this.field.selection;