Commit 1dddc5f9 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

catch an exception if specialise is None.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@33115 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent fe74db1c
...@@ -190,8 +190,11 @@ class TradeModelLine(Predicate, XMLMatrix, Amount): ...@@ -190,8 +190,11 @@ class TradeModelLine(Predicate, XMLMatrix, Amount):
# if parent don't have findSpecialiseValueList, this mean it's on the # if parent don't have findSpecialiseValueList, this mean it's on the
# specialise_value # specialise_value
document = self.getParentValue().getSpecialiseValue() document = self.getParentValue().getSpecialiseValue()
business_process_list = document.findSpecialiseValueList( try:
context=context, portal_type_list=['Business Process']) business_process_list = document.findSpecialiseValueList(
context=context, portal_type_list=['Business Process'])
except AttributeError:
business_process_list = []
business_process = None business_process = None
property_dict = {} property_dict = {}
if len(business_process_list): if len(business_process_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