Browse Source

[FIX] logic error

pull/103/head
Holger Brunn 10 years ago
committed by Sandy Carter
parent
commit
e4a9386211
  1. 4
      partner_relations/model/res_partner.py

4
partner_relations/model/res_partner.py

@ -21,7 +21,7 @@
############################################################################## ##############################################################################
import time import time
from openerp.osv import orm, fields from openerp.osv import orm, fields
from openerp.osv.expression import is_leaf, OR, FALSE_LEAF
from openerp.osv.expression import is_leaf, AND, OR, FALSE_LEAF
from openerp.tools import DEFAULT_SERVER_DATE_FORMAT from openerp.tools import DEFAULT_SERVER_DATE_FORMAT
from openerp.tools.translate import _ from openerp.tools.translate import _
@ -107,7 +107,7 @@ class ResPartner(orm.Model):
context=context) context=context)
if not relation_type_selection_ids: if not relation_type_selection_ids:
result = OR([result, FALSE_LEAF])
result = AND([result, [FALSE_LEAF]])
for relation_type_selection_id in relation_type_selection_ids: for relation_type_selection_id in relation_type_selection_ids:
type_id, is_inverse = relation_type_selection\ type_id, is_inverse = relation_type_selection\

Loading…
Cancel
Save