Commit ca96646e authored by Guillaume Michon's avatar Guillaume Michon

getRootCausalityValueList : the causality may be something different from a delivery (e. g. item)

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@6096 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d9d7829e
......@@ -635,6 +635,9 @@ class Delivery(XMLObject, ImmobilisationDelivery):
initial_list = [self]
else:
for causality in causality_value_list:
# The causality may be something which has not this method
# (e.g. item)
if hasattr(causality, 'getRootCausalityValueList'):
tmp_causality_list = causality.getRootCausalityValueList()
initial_list.extend([x for x in tmp_causality_list
if x not in initial_list])
......
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