[Erp5-report] r18809 - /erp5/trunk/products/ERP5/tests/testInvoice.py

nobody at svn.erp5.org nobody at svn.erp5.org
Mon Jan 21 18:58:17 CET 2008


Author: jerome
Date: Mon Jan 21 18:58:17 2008
New Revision: 18809

URL: http://svn.erp5.org?rev=18809&view=rev
Log:
For now, we should not validate payment rule for test invoice.

Modified:
    erp5/trunk/products/ERP5/tests/testInvoice.py

Modified: erp5/trunk/products/ERP5/tests/testInvoice.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/tests/testInvoice.py?rev=18809&r1=18808&r2=18809&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/tests/testInvoice.py (original)
+++ erp5/trunk/products/ERP5/tests/testInvoice.py Mon Jan 21 18:58:17 2008
@@ -78,6 +78,16 @@
   invoice_line_portal_type = 'Invoice Line'
   invoice_cell_portal_type = 'Invoice Cell'
   invoice_transaction_line_portal_type = 'Sale Invoice Transaction Line'
+
+  def validateRules(self):
+    """
+    try to validate all rules in rule_tool XXX except the default payment rule.
+    """
+    rule_tool = self.getRuleTool()
+    for rule in rule_tool.contentValues(
+        portal_type=rule_tool.getPortalRuleTypeList()):
+      if rule.getId() != 'default_payment_rule':
+        rule.validate()
 
   def getTitle(self):
     return "Invoices"




More information about the Erp5-report mailing list