[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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user