[Erp5-report] r13517 - in /erp5/trunk/bt5/erp5_banking_cash: WorkflowTemplateItem/portal_wo...

nobody at svn.erp5.org nobody at svn.erp5.org
Tue Mar 20 11:31:36 CET 2007


Author: vincent
Date: Tue Mar 20 11:31:23 2007
New Revision: 13517

URL: http://svn.erp5.org?rev=13517&view=rev
Log:
Check that resource is defined on the Account Incident.

Modified:
    erp5/trunk/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/account_incident_workflow/scripts/checkConsistencyAndValidatePositionAccounting.xml
    erp5/trunk/bt5/erp5_banking_cash/bt/revision

Modified: erp5/trunk/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/account_incident_workflow/scripts/checkConsistencyAndValidatePositionAccounting.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/account_incident_workflow/scripts/checkConsistencyAndValidatePositionAccounting.xml?rev=13517&r1=13516&r2=13517&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/account_incident_workflow/scripts/checkConsistencyAndValidatePositionAccounting.xml (original)
+++ erp5/trunk/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/account_incident_workflow/scripts/checkConsistencyAndValidatePositionAccounting.xml Tue Mar 20 11:31:23 2007
@@ -76,6 +76,9 @@
 \n
 transaction = state_change[\'object\']\n
 date = transaction.getStartDate()\n
+\n
+if transaction.getResourceValue() is None:\n
+  raise ValidationFailed, Message(domain="ui", message="No resource defined.")\n
 \n
 user_id = transaction.portal_membership.getAuthenticatedMember().getUserName()\n
 site_list = context.Baobab_getUserAssignedSiteList(user_id=user_id)\n
@@ -214,11 +217,11 @@
                             <string>transaction</string>
                             <string>_getattr_</string>
                             <string>date</string>
+                            <string>None</string>
                             <string>user_id</string>
                             <string>context</string>
                             <string>site_list</string>
                             <string>source</string>
-                            <string>None</string>
                             <string>baobab_source</string>
                             <string>_getiter_</string>
                             <string>site</string>

Modified: erp5/trunk/bt5/erp5_banking_cash/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_banking_cash/bt/revision?rev=13517&r1=13516&r2=13517&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_banking_cash/bt/revision (original)
+++ erp5/trunk/bt5/erp5_banking_cash/bt/revision Tue Mar 20 11:31:23 2007
@@ -1,1 +1,1 @@
-220
+221




More information about the Erp5-report mailing list