diff options
| author | Simon Lejeune <sle@openerp.com> | 2015-01-23 17:04:55 +0100 |
|---|---|---|
| committer | Simon Lejeune <sle@openerp.com> | 2015-01-26 15:00:50 +0100 |
| commit | 92f539078fefea4a4710464a73d45f07322858c7 (patch) | |
| tree | 7adbfa006a7175b28c04ffba26dc1ae9491675a0 /addons/web/static/src/js/view_form.js | |
| parent | fe5f8c60f36879b56e09c3fd67202205db9aae5c (diff) | |
[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.
Diffstat (limited to 'addons/web/static/src/js/view_form.js')
| -rw-r--r-- | addons/web/static/src/js/view_form.js | 4 |
1 files 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({ |
