Browse Source

[FIX] search in res.partner.relation.type to support translated searches

pull/84/head
Holger Brunn 10 years ago
parent
commit
c0e19e41ff
  1. 8
      partner_relations/model/res_partner.py

8
partner_relations/model/res_partner.py

@ -103,7 +103,13 @@ class ResPartner(orm.Model):
relation_type_selection_ids.append(arg[2]) relation_type_selection_ids.append(arg[2])
else: else:
relation_type_selection_ids = relation_type_selection\ relation_type_selection_ids = relation_type_selection\
.search(cr, uid, [('name', arg[1], arg[2])],
.search(
cr, uid,
[
'|',
('type_id.name', arg[1], arg[2]),
('type_id.name_inverse', arg[1], arg[2]),
],
context=context) context=context)
if not relation_type_selection_ids: if not relation_type_selection_ids:

Loading…
Cancel
Save