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

payment rules are not validated by ERP5TypeTestCase.validateRules, no need to

override here


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@20246 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 648e34aa
...@@ -80,16 +80,6 @@ class TestInvoice(TestPackingListMixin, ...@@ -80,16 +80,6 @@ class TestInvoice(TestPackingListMixin,
invoice_cell_portal_type = 'Invoice Cell' invoice_cell_portal_type = 'Invoice Cell'
invoice_transaction_line_portal_type = 'Sale Invoice Transaction Line' 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): def getTitle(self):
return "Invoices" 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