[FIX] only append "Search" prefix if view has search view

bzr revid: chs@openerp.com-20111221104616-217iwi25jgyk4e23
This commit is contained in:
Christophe Simonis
2011-12-21 11:46:16 +01:00
parent f87fe3c08a
commit 65627b4359
+1 -1
View File
@@ -586,7 +586,7 @@ session.web.ViewManagerAction = session.web.ViewManager.extend(/** @lends oepner
var $title = self.$element.find('.oe_view_title_text'),
$search_prefix = $title.find('span.oe_searchable_view');
if (controller.searchable !== false) {
if (controller.searchable !== false && self.flags.search_view !== false) {
if (!$search_prefix.length) {
$title.prepend('<span class="oe_searchable_view">' + _t("Search: ") + '</span>');
}