Don't activate Many2One on TAB key if completion is active

otherwise when selection the completion, a search pop-up is raised.
This commit is contained in:
Cédric Krier committed 2015-10-25 02:37:01 +01:00
1 parent b6727d8e8a
commit dc409b23e1
1 file changed
+6
+6
View File
@@ -3167,6 +3167,12 @@
this.edit();
event_.preventDefault();
} else if (~activate_keys.indexOf(event_.which) && editable) {
if (!this.attributes.completion ||
this.attributes.completion == "1") {
if (this.el.find('.dropdown').hasClass('open')) {
return;
}
}
this.activate();
} else if (this.has_target(this.record().field_get(
this.field_name)) && editable) {