[Erp5-report] r24746 - /erp5/trunk/products/ERP5/Document/TaxRule.py

nobody at svn.erp5.org nobody at svn.erp5.org
Fri Nov 28 18:15:35 CET 2008


Author: jerome
Date: Fri Nov 28 18:15:34 2008
New Revision: 24746

URL: http://svn.erp5.org?rev=24746&view=rev
Log:
don't reexpand tax rule if simulation movement is already linked to a delivery

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

Modified: erp5/trunk/products/ERP5/Document/TaxRule.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/TaxRule.py?rev=24746&r1=24745&r2=24746&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/TaxRule.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Document/TaxRule.py [utf8] Fri Nov 28 18:15:34 2008
@@ -101,7 +101,8 @@
         else:
           for existing_simulation_movement in \
                 existing_simulation_movement_list:
-            existing_simulation_movement.edit(**property_dict)
+            if existing_simulation_movement.getDelivery() is None:
+              existing_simulation_movement.edit(**property_dict)
 
     # Pass to base class
     Rule.expand(self, applied_rule, force=force, **kw)




More information about the Erp5-report mailing list