|
|
@ -156,7 +156,8 @@ class ResPartner(models.Model): |
|
|
|
active_args = [] |
|
|
|
if self.env.context.get('active_test', True): |
|
|
|
for arg in args: |
|
|
|
if is_leaf(arg) and arg[0].startswith('search_relation'): |
|
|
|
if (is_leaf(arg) and isinstance(arg[0], basestring) and |
|
|
|
arg[0].startswith('search_relation')): |
|
|
|
active_args = [('relation_all_ids.active', '=', True)] |
|
|
|
break |
|
|
|
return super(ResPartner, self).search( |
|
|
|