Commit 1d3ce700 authored by Fabien Morin's avatar Fabien Morin

if reference is None, we want to return it


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@27299 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 20bfeff1
...@@ -152,7 +152,7 @@ class TradeCondition(Path, Transformation): ...@@ -152,7 +152,7 @@ class TradeCondition(Path, Transformation):
for trade_model_line in specialise.contentValues( for trade_model_line in specialise.contentValues(
portal_type=self.model_line_portal_type_list): portal_type=self.model_line_portal_type_list):
reference = trade_model_line.getReference() reference = trade_model_line.getReference()
if reference not in reference_list: if reference not in reference_list or reference is None:
trade_model_line_composed_list.append(trade_model_line) trade_model_line_composed_list.append(trade_model_line)
reference_list.append(reference) reference_list.append(reference)
......
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