Commit 5ee635ad authored by Rafael Monnerat's avatar Rafael Monnerat

If follow up information comes with the dialog, it is not needed to check the...

If follow up information comes with the dialog, it is not needed to check the follow up because it will be created later.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@28995 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 590efa68
......@@ -58,7 +58,22 @@ from Products.ERP5Type.Message import translateString\n
\n
container.Event_checkConsistency(sci)\n
\n
portal = sci.getPortal()\n
portal_workflow = portal.portal_workflow\n
event = sci[\'object\']\n
\n
follow_up_ticket_type = portal_workflow.getInfoFor(event,\n
\'follow_up_ticket_type\',\n
wf_id=\'event_workflow\')\n
\n
follow_up_ticket_title = portal_workflow.getInfoFor(event,\n
\'follow_up_ticket_title\',\n
wf_id=\'event_workflow\')\n
\n
if follow_up_ticket_type not in ["", None] and \\\n
follow_up_ticket_title not in ["", None]:\n
return \n
\n
if not event.getFollowUp():\n
raise ValidationFailed(translateString(\'Follow up must be set to acknowledge an Event.\'))\n
</string> </value>
......@@ -104,8 +119,13 @@ if not event.getFollowUp():\n
<string>translateString</string>
<string>_getattr_</string>
<string>container</string>
<string>portal</string>
<string>portal_workflow</string>
<string>_getitem_</string>
<string>event</string>
<string>follow_up_ticket_type</string>
<string>follow_up_ticket_title</string>
<string>None</string>
</tuple>
</value>
</item>
......
436
\ No newline at end of file
437
\ 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