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

check constraints on accounting periods


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@36896 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent baf935e1
......@@ -62,6 +62,8 @@ closing_period = state_change[\'object\']\n
portal = closing_period.getPortalObject()\n
valid_state_list = [\'started\', \'stopped\', \'delivered\']\n
\n
closing_period.Base_checkConsistency()\n
\n
start_date = closing_period.getStartDate()\n
stop_date = closing_period.getStopDate()\n
\n
......
......@@ -59,6 +59,8 @@ from Products.ERP5Type.Message import translateString\n
period = state_change[\'object\']\n
portal = period.getPortalObject()\n
\n
period.Base_checkConsistency()\n
\n
valid_simulation_state_list = [\'cancelled\', \'delivered\', \'deleted\', \'rejected\']\n
all_state_list = [x[1] for x in\n
portal.Base_getTranslatedWorkflowStateItemList(wf_id=\'accounting_workflow\')]\n
......
1299
\ No newline at end of file
1300
\ No newline at end of file
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