From dc409b23e122be956bcd08928c355e27a4ebda8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sun, 25 Oct 2015 02:37:01 +0100 Subject: [PATCH] Don't activate Many2One on TAB key if completion is active otherwise when selection the completion, a search pop-up is raised. --- src/view.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/view.js b/src/view.js index 611f6d49da..4a66d6b380 100644 --- a/src/view.js +++ b/src/view.js @@ -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) {