Commit 07b0ef8d authored by Fabien Morin's avatar Fabien Morin

remove movements that should not be created (create_line False)


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@27459 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d3333229
......@@ -200,4 +200,9 @@ class TradeCondition(Path, Transformation):
need_to_run = 1
movement_list = result
return result
# remove movement that should not be created
final_list = []
for movement in result:
if getattr(movement, 'create_line', True):
final_list.append(movement)
return final_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