Commit 18db0ccb authored by Jérome Perrin's avatar Jérome Perrin

reversed conditional for period validation


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@5099 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 4639d1e5
...@@ -77,7 +77,7 @@ transaction = state_change[\'object\']\n ...@@ -77,7 +77,7 @@ transaction = state_change[\'object\']\n
skip_period_validation = state_change[\'kwargs\'].get(\'skip_period_validation\', 0)\n skip_period_validation = state_change[\'kwargs\'].get(\'skip_period_validation\', 0)\n
transition = state_change[\'transition\']\n transition = state_change[\'transition\']\n
if transition.id in (\'plan_action\', \'confirm_action\') :\n if transition.id in (\'plan_action\', \'confirm_action\') :\n
skip_period_validation = 0\n skip_period_validation = 1\n
\n \n
if transaction.getStopDate() in (None, \'\') : \n if transaction.getStopDate() in (None, \'\') : \n
error_message = \'date is not defined\'\n error_message = \'date is not defined\'\n
......
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