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

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Apr 17 15:39:52 CEST 2008


Author: jerome
Date: Thu Apr 17 15:39:50 2008
New Revision: 20613

URL: http://svn.erp5.org?rev=20613&view=rev
Log:
don't test the rule, it's an heavy computation, and rather useless

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=20613&r1=20612&r2=20613&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/TaxRule.py (original)
+++ erp5/trunk/products/ERP5/Document/TaxRule.py Thu Apr 17 15:39:50 2008
@@ -105,13 +105,3 @@
     # Pass to base class
     Rule.expand(self, applied_rule, force=force, **kw)
 
-  def test(self, context, *args, **kw):
-    """Test if this rule can be applied.
-
-    We return false immediatly if the rule won't create any simulation
-    movement, to prevent creating an empty applied rule.
-    """
-    if not (context.DeliveryMovement_getCorrespondingTaxLineList()):
-      return False
-    return DeliveryRule.test(self, context, *args, **kw)
-




More information about the Erp5-report mailing list