Commit c0cf7e15 authored by Sebastien Robin's avatar Sebastien Robin

added a test in getRootCausalityValueList


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@6084 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 9523b4c6
...@@ -628,7 +628,8 @@ class Delivery(XMLObject, ImmobilisationDelivery): ...@@ -628,7 +628,8 @@ class Delivery(XMLObject, ImmobilisationDelivery):
This method will look at the causality and check if the This method will look at the causality and check if the
causality has already a causality causality has already a causality
""" """
causality_value_list = self.getCausalityValueList() causality_value_list = [x for x in self.getCausalityValueList()
if x is not self]
initial_list = [] initial_list = []
if len(causality_value_list)==0: if len(causality_value_list)==0:
initial_list = [self] initial_list = [self]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment