[Erp5-report] r31506 nicolas.dumazet - /erp5/trunk/products/ERP5/Document/TradeCondition.py

nobody at svn.erp5.org nobody at svn.erp5.org
Tue Dec 29 03:18:34 CET 2009


Author: nicolas.dumazet
Date: Tue Dec 29 03:18:33 2009
New Revision: 31506

URL: http://svn.erp5.org?rev=31506&view=rev
Log:
remove redundant assignment

The first statement in the loop body is "keep_movement = False", effectively
making this line useless

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=31506&r1=31505&r2=31506&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/TradeCondition.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Document/TradeCondition.py [utf8] Tue Dec 29 03:18:33 2009
@@ -93,8 +93,8 @@
         # check if the movement is a generated one or entered by the user.
         # If it has been entered by user, keep it.
         if not movement.getBaseApplicationList():
-          keep_movement = True
           continue
+
         for amount in aggregated_amount_list:
           # if movement is generated and if not exist, append to delete list
           update_kw = {}




More information about the Erp5-report mailing list