From 92f539078fefea4a4710464a73d45f07322858c7 Mon Sep 17 00:00:00 2001 From: Simon Lejeune Date: Fri, 23 Jan 2015 17:04:55 +0100 Subject: [PATCH] [FIX] web: correct append of the autocomplete widget in the viewmanager Adapt rev 4a3e5df93abba and rev e1cde4d038312 to the current webclient structure. Without this patch, autocomplete widget is completely broken with multiple viewmanager. --- addons/web/static/src/js/view_form.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/web/static/src/js/view_form.js b/addons/web/static/src/js/view_form.js index bc37736c21f..50b579f35d9 100644 --- a/addons/web/static/src/js/view_form.js +++ b/addons/web/static/src/js/view_form.js @@ -3746,8 +3746,8 @@ instance.web.form.FieldMany2One = instance.web.form.AbstractField.extend(instanc minLength: 0, delay: 250, }); - var appendTo = this.$el.parents('.oe_view_manager_body, .modal-dialog').last(); - if (appendTo.length === 0){ + var appendTo = this.$input.parents('.oe-view-manager-content, .modal-dialog').last(); + if (appendTo.length === 0) { appendTo = '.oe_application > *'; } this.$input.autocomplete({