diff --git a/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/monetary_reception_workflow/scripts/checkDestination.xml b/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/monetary_reception_workflow/scripts/checkDestination.xml index dd7403f9f5073ba58146107825cd943021290242..5000841be965f5af2f2921cfa18a7fb082db9458 100644 --- a/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/monetary_reception_workflow/scripts/checkDestination.xml +++ b/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/monetary_reception_workflow/scripts/checkDestination.xml @@ -73,7 +73,7 @@ from Products.DCWorkflow.DCWorkflow import ValidationFailed\n \n object = state_change.object\n # first check if we have line defined\n -if len(object.objectValues(portal_type=\'Cash Delivery Line\') == 0:\n +if len(object.objectValues(portal_type=\'Cash Delivery Line\')) == 0:\n msg = Message(domain="ui", message="No line defined on document.")\n raise ValidationFailed, (msg,)\n \n @@ -114,9 +114,7 @@ if line_letter != dest.getCodification()[0]:\n <item> <key> <string>errors</string> </key> <value> - <tuple> - <string>invalid syntax (checkDestination, line 6)</string> - </tuple> + <tuple/> </value> </item> <item> @@ -131,12 +129,25 @@ if line_letter != dest.getCodification()[0]:\n <dictionary> <item> <key> <string>co_argcount</string> </key> - <value> <int>0</int> </value> + <value> <int>1</int> </value> </item> <item> <key> <string>co_varnames</string> </key> <value> - <tuple/> + <tuple> + <string>state_change</string> + <string>Products.ERP5Type.Message</string> + <string>Message</string> + <string>Products.DCWorkflow.DCWorkflow</string> + <string>ValidationFailed</string> + <string>_getattr_</string> + <string>object</string> + <string>len</string> + <string>msg</string> + <string>dest</string> + <string>_getitem_</string> + <string>line_letter</string> + </tuple> </value> </item> </dictionary> @@ -147,7 +158,7 @@ if line_letter != dest.getCodification()[0]:\n <item> <key> <string>func_defaults</string> </key> <value> - <tuple/> + <none/> </value> </item> <item>