diff options
| author | niv-openerp <nicolas.vanhoren@openerp.com> | 2011-09-13 11:34:09 +0200 |
|---|---|---|
| committer | niv-openerp <nicolas.vanhoren@openerp.com> | 2011-09-13 11:34:09 +0200 |
| commit | 10a8ef00cd0c8fe4e666bd2322d4776bf49ecce0 (patch) | |
| tree | a8893eb5c3c1a588ee922b9696b5818b83eb8a09 /addons/web/static/src/js/form.js | |
| parent | 30cc28efbb14abb6a566c54263eb958aa9cbb22d (diff) | |
[fix] problem with statusbar, does not use all states when no visible state defined
bzr revid: nicolas.vanhoren@openerp.com-20110913093409-u2qaby393y9pzb02
Diffstat (limited to 'addons/web/static/src/js/form.js')
| -rw-r--r-- | addons/web/static/src/js/form.js | 1 |
1 files changed, 1 insertions, 0 deletions
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; |
