Commit e2a67b54 authored by Aurel's avatar Aurel

do not validate accounting rule for this test


git-svn-id: https://svn.erp5.org/repos/public/erp5/sandbox/amount_generator@37709 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 1943a7ee
......@@ -152,6 +152,22 @@ class TestPackingListMixin(TestOrderMixin):
"""
return 1
def validateRules(self):
"""
try to validate all rules in rule_tool.
"""
rule_tool = self.getRuleTool()
for rule in rule_tool.contentValues(
portal_type=rule_tool.getPortalRuleTypeList()):
if rule.getValidationState() != 'validated':
rule.validate()
for rule in rule_tool.contentValues(
portal_type=rule_tool.getPortalRuleTypeList()):
if rule.getValidationState() == 'validated' and rule.getReference() == 'default_accounting_transaction_rule':
rule.invalidate()
def stepCheckOrderPackingList(self, sequence=None, sequence_list=None, **kw):
"""
Test if packing list is matching order
......
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