[IMP] FieldStatus for selection get_selection now always return a true deferred; for a selection it is resolved, because nothing asynchronous has to be done.
bzr revid: tde@openerp.com-20120531142854-qrr3zlh5m5wrjtcf
This commit is contained in:
parent
492c3134f4
commit
3cb2fb8534
|
@ -4126,8 +4126,7 @@ instance.web.form.FieldStatus = instance.web.form.AbstractField.extend({
|
|||
render_list: function() {
|
||||
var self = this;
|
||||
// get selection values, filter them and render them
|
||||
var selection_done = this.get_selection();
|
||||
return $.when(selection_done).pipe(self.proxy('filter_selection')).pipe(self.proxy('render_elements'));
|
||||
var selection_done = this.get_selection().pipe(self.proxy('filter_selection')).pipe(self.proxy('render_elements'));
|
||||
},
|
||||
|
||||
/** Get the selection list to be displayed in the statusbar widget.
|
||||
|
@ -4166,7 +4165,7 @@ instance.web.form.FieldStatus = instance.web.form.AbstractField.extend({
|
|||
}
|
||||
else {
|
||||
this.selection = this.field.selection;
|
||||
var read_defer = true;
|
||||
var read_defer = new $.Deferred().resolve();
|
||||
}
|
||||
return read_defer;
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue