[FIX] Fixed field value out of 'to show' list not showed anymore, due to a not defined self.

bzr revid: tde@openerp.com-20120518123420-xid16y12kwgyatr3
This commit is contained in:
Thibault Delavallée 2012-05-18 14:34:20 +02:00
parent 813ad817fb
commit 962a5932cc
1 changed files with 2 additions and 3 deletions

View File

@ -3902,9 +3902,7 @@ instance.web.form.FieldStatus = instance.web.form.AbstractField.extend({
// search in the external relation for all possible values, then render them
var rendering_done = $.when(selection_done).pipe(function () {
//self.filter_selection();
self.to_show = self.selection;
console.log(self.to_show);
self.filter_selection();
}).pipe(self.proxy('render_elements'));
return rendering_done;
@ -3936,6 +3934,7 @@ instance.web.form.FieldStatus = instance.web.form.AbstractField.extend({
return true;
},
filter_selection: function() {
var self = this;
var shown = _.map(((this.node.attrs || {}).statusbar_visible || "").split(","),
function(x) { return _.str.trim(x); });
shown = _.select(shown, function(x) { return x.length > 0; });