* oe_searchview_custom has been split in oe_searchview_custom and
oe_searchview_filter: a test need to take that into account
* in adjust_top, the parent might not have a $ method.
adjust_top: function () {
// hack to adjust the top of the view manager body to the actual header height
var parent = this.getParent();
- if (parent) {
+ if (parent && parent.$) {
var h = parent.$(".oe_view_manager_header").height() + 1;
parent.$(".oe_view_manager_body").css('top', h + 'px');
}
});
return view.appendTo($fix)
.then(function () {
- $fix.find('.oe_searchview_custom input#oe_searchview_custom_input')
+ $fix.find('.oe_searchview_savefilter input#oe_searchview_custom_input')
.val("filter name")
.end()
- .find('.oe_searchview_custom button').click();
+ .find('.oe_searchview_savefilter button').click();
return done.promise();
});
});