[IMP] Close m2o autocomplete when user clicks outside
bzr revid: fme@openerp.com-20120816125540-avezmt4797lcaxfd
This commit is contained in:
parent
56ce5fb54e
commit
d52045ef11
|
@ -2723,6 +2723,11 @@ instance.web.form.FieldMany2One = instance.web.form.AbstractField.extend(instanc
|
||||||
this.floating = false;
|
this.floating = false;
|
||||||
this.render_value();
|
this.render_value();
|
||||||
});
|
});
|
||||||
|
instance.web.bus.on('click', this, function() {
|
||||||
|
if (!this.get("effective_readonly") && this.$input && this.$input.autocomplete('widget').is(':visible')) {
|
||||||
|
this.$input.autocomplete("close");
|
||||||
|
}
|
||||||
|
});
|
||||||
},
|
},
|
||||||
initialize_content: function() {
|
initialize_content: function() {
|
||||||
if (!this.get("effective_readonly"))
|
if (!this.get("effective_readonly"))
|
||||||
|
|
Loading…
Reference in New Issue