summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorDenis Ledoux <dle@odoo.com>2014-12-10 16:06:36 +0100
committerDenis Ledoux <dle@odoo.com>2014-12-10 16:10:00 +0100
commit558efaceadf027a51a049c2df4c570ec590353ac (patch)
treeea5438b3b415d5b7bc956fb47146a29b17abc845 /addons
parent6dceae0de948f7ece60fac3dc4c07ba866c0e432 (diff)
[FIX] web: retro compatible patch for a8f94a59cde1c4034b1a704014d1572598db833f
Some views are not appended to the element oe_view_manager_body, such as client actions views. For these cases, we append the element to the view manager element Besides, we set the appendTo option of jquery ui autocomplete after a first initialization, because of a Jquery ui bug: http://bugs.jqueryui.com/ticket/8858
Diffstat (limited to 'addons')
-rw-r--r--addons/web/static/src/js/view_form.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/addons/web/static/src/js/view_form.js b/addons/web/static/src/js/view_form.js
index e6cae5df4a0..2c3b952d2ee 100644
--- a/addons/web/static/src/js/view_form.js
+++ b/addons/web/static/src/js/view_form.js
@@ -3735,7 +3735,13 @@ instance.web.form.FieldMany2One = instance.web.form.AbstractField.extend(instanc
//close: anyoneLoosesFocus,
minLength: 0,
delay: 250,
- appendTo: '.oe_view_manager_body'
+ });
+ var appendTo = this.$input.parents('.oe_view_manager_body');
+ if (appendTo.length === 0){
+ appendTo = self.view.ViewManager.$el;
+ }
+ this.$input.autocomplete({
+ appendTo: appendTo
});
// set position for list of suggestions box
this.$input.autocomplete( "option", "position", { my : "left top", at: "left bottom" } );