[IMP] Also check the presence of active_ids

bzr revid: fme@openerp.com-20130205120950-f4lwe2ng3ktwr033
This commit is contained in:
Fabien Meghazi 2013-02-05 13:09:50 +01:00
parent 87368f7672
commit 862882da33
1 changed files with 4 additions and 4 deletions

View File

@ -272,10 +272,10 @@ instance.web.ActionManager = instance.web.Widget.extend({
if (action.context) {
action.context = instance.web.pyeval.eval(
'context', action.context);
if (action.context.active_id) {
// Here we assume that when an `active_id` is used in the context,
// we are in a `related` action, so we disable the searchview's
// default custom filters.
if (action.context.active_id || action.context.active_ids) {
// Here we assume that when an `active_id` or `active_ids` is used
// in the context, we are in a `related` action, so we disable the
// searchview's default custom filters.
action.context.search_disable_custom_filters = true;
}
}