[Erp5-report] r27459 - /erp5/trunk/products/ERP5/Document/TradeCondition.py

nobody at svn.erp5.org nobody at svn.erp5.org
Tue Jun 9 11:32:16 CEST 2009


Author: fabien
Date: Tue Jun  9 11:32:15 2009
New Revision: 27459

URL: http://svn.erp5.org?rev=27459&view=rev
Log:
remove movements that should not be created (create_line False)

Modified:
    erp5/trunk/products/ERP5/Document/TradeCondition.py

Modified: erp5/trunk/products/ERP5/Document/TradeCondition.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/TradeCondition.py?rev=27459&r1=27458&r2=27459&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/TradeCondition.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Document/TradeCondition.py [utf8] Tue Jun  9 11:32:15 2009
@@ -200,4 +200,9 @@
           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




More information about the Erp5-report mailing list