|
@ -143,7 +143,8 @@ class ResPartner(models.Model): |
|
|
# pylint: disable=no-value-for-parameter |
|
|
# pylint: disable=no-value-for-parameter |
|
|
date_args = [] |
|
|
date_args = [] |
|
|
for arg in args: |
|
|
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')): |
|
|
if arg[0] == 'search_relation_date': |
|
|
if arg[0] == 'search_relation_date': |
|
|
date_args = [] |
|
|
date_args = [] |
|
|
break |
|
|
break |
|
@ -155,7 +156,8 @@ class ResPartner(models.Model): |
|
|
active_args = [] |
|
|
active_args = [] |
|
|
if self.env.context.get('active_test', True): |
|
|
if self.env.context.get('active_test', True): |
|
|
for arg in args: |
|
|
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)] |
|
|
active_args = [('relation_all_ids.active', '=', True)] |
|
|
break |
|
|
break |
|
|
return super(ResPartner, self).search( |
|
|
return super(ResPartner, self).search( |
|
|