From a8d0f4bb8143b74a813bd6274c661b14b663c93e Mon Sep 17 00:00:00 2001 From: Holger Brunn Date: Wed, 28 Jan 2015 11:30:31 +0100 Subject: [PATCH] [FIX] logic error --- partner_relations/model/res_partner.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/partner_relations/model/res_partner.py b/partner_relations/model/res_partner.py index 1dddfd913..3372407aa 100644 --- a/partner_relations/model/res_partner.py +++ b/partner_relations/model/res_partner.py @@ -21,7 +21,7 @@ ############################################################################## import time 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.translate import _ @@ -107,7 +107,7 @@ class ResPartner(orm.Model): context=context) 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: type_id, is_inverse = relation_type_selection\