From 7ca847320e67d2a797eb611f222467b6afa5f094 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Calonne?= <aurel@nexedi.com> Date: Mon, 30 Nov 2009 15:09:16 +0000 Subject: [PATCH] do not retrieve causality uid if it was already provided git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@30932 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5/Document/BPMBuilder.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/product/ERP5/Document/BPMBuilder.py b/product/ERP5/Document/BPMBuilder.py index 0acf6d161d..ff97d1227c 100644 --- a/product/ERP5/Document/BPMBuilder.py +++ b/product/ERP5/Document/BPMBuilder.py @@ -99,10 +99,11 @@ class BPMBuilder(Alarm): self.callBeforeBuildingScript() # Select movements if input_movement_list is None: - business_path_value_list = self.getRelatedBusinessPathValueList() - if len(business_path_value_list) > 0: - # use only Business Path related movements - select_method_dict['causality_uid'] = [q.getUid() for q in business_path_value_list] + if not select_method_dict.has_key('causality_uid'): + business_path_value_list = self.getRelatedBusinessPathValueList() + if len(business_path_value_list) > 0: + # use only Business Path related movements + select_method_dict['causality_uid'] = [q.getUid() for q in business_path_value_list] # do search input_movement_value_list = self.searchMovementList( delivery_relative_url_list=existing_delivery_list, -- 2.30.9