[FIX] statusbar widget: fix no value display for 'selection' field
* really call initial get_selection() after binding 'change:selection' overwise no value are assigned to internal selection list - resulting to an empty statusbar when field type is 'selection' bzr revid: xal@openerp.com-20130304230253-0e959r9sintwsd98
This commit is contained in:
parent
8453234ead
commit
b07c1a8461
|
@ -5264,11 +5264,11 @@ instance.web.form.FieldStatus = instance.web.form.AbstractField.extend({
|
|||
this.calc_domain();
|
||||
this.on("change:value", this, this.get_selection);
|
||||
this.on("change:evaluated_selection_domain", this, this.get_selection);
|
||||
this.get_selection();
|
||||
this.on("change:selection", this, function() {
|
||||
this.selection = this.get("selection");
|
||||
this.render_value();
|
||||
});
|
||||
this.get_selection();
|
||||
if (this.options.clickable) {
|
||||
this.$el.on('click','li',this.on_click_stage);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue