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

Skip accounting period validation when passing workflow transitions.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4783 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 258ceb31
......@@ -1212,7 +1212,8 @@ class TestAccountingRules(ERP5TypeTestCase):
invoice = sequence.get('invoice')
self.getPortal().portal_workflow.doActionFor(
invoice, 'plan_action',
wf_id = 'accounting_workflow'
wf_id = 'accounting_workflow',
skip_period_validation = 1
)
self.assertEquals(invoice.getSimulationState(), 'planned')
......@@ -1222,7 +1223,8 @@ class TestAccountingRules(ERP5TypeTestCase):
invoice = sequence.get('invoice')
self.getPortal().portal_workflow.doActionFor(
invoice, 'confirm_action',
wf_id = 'accounting_workflow'
wf_id = 'accounting_workflow',
skip_period_validation = 1
)
self.assertEquals(invoice.getSimulationState(), 'confirmed')
......
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