Commit aff328bd authored by Jérome Perrin's avatar Jérome Perrin

For now, we should not validate payment rule for test invoice.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@18809 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ffa3ccd9
......@@ -79,6 +79,16 @@ class TestInvoice(TestPackingListMixin,
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"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment