Browse Source

[FIX] logic error

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

4
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\

Loading…
Cancel
Save