Browse Source

[FIX] partner_multi_relation: Another comparison fix with search arguments

pull/465/merge
Pedro M. Baeza 7 years ago
parent
commit
301ba32782
  1. 3
      partner_multi_relation/models/res_partner.py

3
partner_multi_relation/models/res_partner.py

@ -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(

Loading…
Cancel
Save