From 07b0ef8da973e09cb51cdf1a859a032d30a9397b Mon Sep 17 00:00:00 2001 From: Fabien Morin <fabien@nexedi.com> Date: Tue, 9 Jun 2009 09:32:15 +0000 Subject: [PATCH] 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 --- product/ERP5/Document/TradeCondition.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/product/ERP5/Document/TradeCondition.py b/product/ERP5/Document/TradeCondition.py index e4c8d0101f..7af7d2d163 100644 --- a/product/ERP5/Document/TradeCondition.py +++ b/product/ERP5/Document/TradeCondition.py @@ -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 -- 2.30.9