Commit 74c883ec authored by Sebastien Robin's avatar Sebastien Robin

fixed again another problem in the cash_movement_workflow

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@14607 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 77d1d964
......@@ -73,11 +73,10 @@ from Products.DCWorkflow.DCWorkflow import ValidationFailed\n
from Products.ERP5Type.Message import Message\n
transaction = state_change[\'object\']\n
stop_date_key = \'your_stop_date\'\n
if not kw.has_key(stop_date_key):\n
if not state_change.kwargs.has_key(stop_date_key):\n
msg = Message(domain = "ui", message="No stop date provided")\n
raise ValidationFailed, (msg,)\n
transaction.setStopDate(kw[stop_date_key])\n
del kw[stop_date_key]\n
transaction.setStopDate(state_change.kwargs[stop_date_key])\n
context.validateDestinationCounterDate(state_change, **kw)\n
</string> </value>
</item>
......@@ -146,7 +145,6 @@ context.validateDestinationCounterDate(state_change, **kw)\n
<string>stop_date_key</string>
<string>_getattr_</string>
<string>msg</string>
<string>_write_</string>
<string>_apply_</string>
<string>context</string>
</tuple>
......
327
\ No newline at end of file
329
\ 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