Browse Source

[IMP] support != operator

pull/88/head
Holger Brunn 10 years ago
parent
commit
35bb18f686
  1. 2
      partner_relations/model/res_partner.py

2
partner_relations/model/res_partner.py

@ -89,7 +89,7 @@ class ResPartner(orm.Model):
result = [] result = []
for arg in args: for arg in args:
if isinstance(arg, tuple) and arg[0] == name: if isinstance(arg, tuple) and arg[0] == name:
if arg[1] not in ['=', 'like', 'not like', 'ilike',
if arg[1] not in ['=', '!=', 'like', 'not like', 'ilike',
'not ilike', 'in', 'not in']: 'not ilike', 'in', 'not in']:
raise orm.except_orm( raise orm.except_orm(
_('Error'), _('Error'),

Loading…
Cancel
Save