Commit 770b8fc4 authored by Aurel's avatar Aurel

do not validate accounting rule in this test


git-svn-id: https://svn.erp5.org/repos/public/erp5/sandbox/amount_generator@37716 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 989588dd
......@@ -155,6 +155,21 @@ 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