From 10a8ef00cd0c8fe4e666bd2322d4776bf49ecce0 Mon Sep 17 00:00:00 2001 From: niv-openerp Date: Tue, 13 Sep 2011 11:34:09 +0200 Subject: [PATCH] [fix] problem with statusbar, does not use all states when no visible state defined bzr revid: nicolas.vanhoren@openerp.com-20110913093409-u2qaby393y9pzb02 --- addons/web/static/src/js/form.js | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/web/static/src/js/form.js b/addons/web/static/src/js/form.js index d419516dc77..a235d900224 100644 --- a/addons/web/static/src/js/form.js +++ b/addons/web/static/src/js/form.js @@ -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;