[IMP] only set auto_search on flags if not already set, so flags can be used to override action's auto_search

bzr revid: xmo@openerp.com-20120125142043-o9znm8qphrm9rlsp
This commit is contained in:
Xavier Morel
2012-01-25 15:20:43 +01:00
parent e90d6ac735
commit f854b4b9f8
+3 -1
View File
@@ -453,7 +453,9 @@ session.web.ViewManagerAction = session.web.ViewManager.extend(/** @lends oepner
// do not have it yet (and we don't, because we've not called our own
// ``_super()``) rpc requests will blow up.
var flags = action.flags || {};
flags.auto_search = action.auto_search !== false;
if (!('auto_search' in flags)) {
flags.auto_search = action.auto_search !== false;
}
if (action.res_model == 'board.board' && action.view_mode === 'form') {
// Special case for Dashboards
_.extend(flags, {