From 3df9538ec49e5c6a311fa39759b34485a02ca032 Mon Sep 17 00:00:00 2001 From: Romain Courteaud <romain@nexedi.com> Date: Thu, 30 Aug 2012 11:16:02 +0200 Subject: [PATCH] Reduce number of JOIN --- product/ERP5/Document/Event.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/product/ERP5/Document/Event.py b/product/ERP5/Document/Event.py index 4d7dffc82b..a067308ac6 100644 --- a/product/ERP5/Document/Event.py +++ b/product/ERP5/Document/Event.py @@ -83,8 +83,8 @@ class AcknowledgeableMixin: person_value = self.ERP5Site_getAuthenticatedMemberPersonValue( user_name=user_name) if len(self.portal_catalog(portal_type='Acknowledgement', - causality_relative_url=self.getRelativeUrl(), - destination_relative_url=person_value.getRelativeUrl())) > 0: + default_causality_uid=self.getUid(), + default_destination_uid=person_value.getUid())) > 0: result = True return result -- 2.30.9