Commit 4134e7fb authored by Fabien Morin's avatar Fabien Morin

use accessor


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@27461 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 8efbbc8a
...@@ -203,6 +203,6 @@ class TradeCondition(Path, Transformation): ...@@ -203,6 +203,6 @@ class TradeCondition(Path, Transformation):
# remove movement that should not be created # remove movement that should not be created
final_list = [] final_list = []
for movement in result: for movement in result:
if getattr(movement, 'create_line', True): if movement.isCreateLine():
final_list.append(movement) final_list.append(movement)
return final_list 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